removed some hacks
This commit is contained in:
@@ -93,11 +93,6 @@ namespace Distribution {
|
||||
const Eigen::MatrixXd centered = data.rowwise() - mean.transpose();
|
||||
Eigen::MatrixXd cov = (centered.adjoint() * centered) / double(data.rows() - 1);
|
||||
|
||||
//this is a hack
|
||||
if(cov(2,2) < 0.1){
|
||||
cov(2,2) = 0.1;
|
||||
}
|
||||
|
||||
return NormalDistributionN(mean, cov);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user