fix incorrect moment matrix init for Segment_3

This commit is contained in:
Simon Giraudot 2020-09-14 09:35:57 +02:00
parent 80fca76641
commit bdcae24d72
1 changed files with 3 additions and 3 deletions

View File

@ -548,8 +548,8 @@ assemble_covariance_matrix_3(InputIterator first,
// assemble 2nd order moment about the origin.
Matrix moment;
moment << 1.0, 0.5, 0.0,
0.5, 1.0, 0.0,
moment << 1.0/3.0, 0.5/3.0, 0.0,
0.5/3.0, 1.0/3.0, 0.0,
0.0, 0.0, 0.0;
for(InputIterator it = first;