setData method
parent
b57e448232
commit
d18f23c47b
|
@ -483,6 +483,11 @@ double DiscreteConditional::evaluate(const Assignment<Key>& values) const {
|
|||
return BaseFactor::evaluate(values);
|
||||
}
|
||||
|
||||
/* ************************************************************************* */
|
||||
double DiscreteConditional::setData(const DiscreteConditional::shared_ptr& dc) {
|
||||
this->root_ = dc->root_;
|
||||
}
|
||||
|
||||
/* ************************************************************************* */
|
||||
double DiscreteConditional::negLogConstant() const { return 0.0; }
|
||||
|
||||
|
|
|
@ -270,6 +270,9 @@ class GTSAM_EXPORT DiscreteConditional
|
|||
*/
|
||||
double negLogConstant() const override;
|
||||
|
||||
/// Set the data from another DiscreteConditional.
|
||||
virtual void setData(const DiscreteConditional::shared_ptr& dc);
|
||||
|
||||
/// @}
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Reference in New Issue