31 if (!normalDistribution)
37 int dimensions = normalDistribution->getDimensions();
40 Eigen::MatrixXd cov(dimensions, dimensions);
41 Eigen::VectorXd
mean(dimensions);
43 for (
int r = 0 ; r < dimensions ; r++)
45 mean(r) = normalDistribution->getMean()[r];
47 for (
int c = 0 ;
c < dimensions ;
c++)
49 cov(r,
c) = normalDistribution->getCovariance(r,
c);
66 for (
int r = 0 ; r < dimensions ; r++)
68 Eigen::VectorXd meanV = gaussian.
getMean();
69 mean.push_back(meanV(r));
71 for (
int c = 0 ;
c < dimensions ;
c++)
74 result->setCovariance(r,
c, covV(r,
c));
78 result->setMean(
mean);
90 for (
int d = 0 ; d < dimensions ; d++)
96 result->setMean(
mean);