8 distIn->varSize*Eigen::VectorXi::Ones(1)),
23 return dist->LogDensity(inputs);
28 return dist->GradLogDensity(wrt, inputs);
33 return dist->Sample(inputs);
friend class RandomVariable
Provides an abstract interface for defining vector-valued model components.
std::vector< Eigen::VectorXd > outputs
virtual Eigen::VectorXd GradLogDensityImpl(unsigned int wrt, ref_vector< Eigen::VectorXd > const &inputs) override
virtual Eigen::VectorXd SampleImpl(ref_vector< Eigen::VectorXd > const &inputs) override
Sample the distribution.
virtual double LogDensityImpl(ref_vector< Eigen::VectorXd > const &inputs) override
Implement the log-density.
std::shared_ptr< Distribution > dist
virtual void EvaluateImpl(ref_vector< Eigen::VectorXd > const &inputs) override
std::vector< std::reference_wrapper< const T > > ref_vector
A vector of references to something ...