Skip to content
Snippets Groups Projects
Commit 8bb52584 authored by Gabriel Studer's avatar Gabriel Studer
Browse files

requires geometric mean to calculate proper covariance matrix

parent c04c040a
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ public:
PrincipalAxisCalc(const EntityHandle& ent):
natoms_(ent.GetAtomCount())
{
mean_=ent.GetBounds().GetCenter();
mean_=ent.GetCenterOfAtoms();
cov_.setZero();
}
PrincipalAxisCalc(const AtomHandleList& atoms):
......@@ -55,7 +55,7 @@ public:
PrincipalAxisCalc(const EntityView& ent):
natoms_(ent.GetAtomCount())
{
mean_=ent.GetBounds().GetCenter();
mean_=ent.GetCenterOfAtoms();
cov_.setZero();
}
virtual bool VisitAtom(const AtomHandle& atom)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment