diff --git a/packages/CLPBN/horus/Factor.h b/packages/CLPBN/horus/Factor.h index f2b91230b..2b82bb833 100644 --- a/packages/CLPBN/horus/Factor.h +++ b/packages/CLPBN/horus/Factor.h @@ -52,7 +52,7 @@ class TFactor void absorveEvidence (const T& arg, unsigned obsIdx); - void reorderArguments (const vector new_args); + void reorderArguments (const vector& new_args); bool contains (const T& arg) const; @@ -79,7 +79,7 @@ template inline void TFactor::randomize (void) { for (size_t i = 0; i < params_.size(); ++i) { - params_[i] = (double) std::rand() / RAND_MAX; + params_[i] = (double) std::rand() / RAND_MAX; } } @@ -225,7 +225,7 @@ TFactor::absorveEvidence (const T& arg, unsigned obsIdx) template inline void -TFactor::reorderArguments (const vector new_args) +TFactor::reorderArguments (const vector& new_args) { assert (new_args.size() == args_.size()); if (new_args == args_) {