Related to: #361 (reply in thread)
The Elongation Shape Factor (ESF) is defined as the square root of the ratio of the largest and smallest eigenvalues of the moment matrix. This matrix is positive semi-definite, and the eigenvalues are (mathematically) guaranteed to be non-negative.
That said, it's not impossible that due to floating point arithmetic, a shape could exist that would result in the smallest eigenvalue being very small and negative, which would cause the ESF to be NAN.
It is also possible that, if a shape is (very nearly) colinear, the ESF could be (floating point) infinite. This would also cause problems from an archiving perspective.
Suggestions:
Related to: #361 (reply in thread)
The Elongation Shape Factor (ESF) is defined as the square root of the ratio of the largest and smallest eigenvalues of the moment matrix. This matrix is positive semi-definite, and the eigenvalues are (mathematically) guaranteed to be non-negative.
That said, it's not impossible that due to floating point arithmetic, a shape could exist that would result in the smallest eigenvalue being very small and negative, which would cause the ESF to be NAN.
It is also possible that, if a shape is (very nearly) colinear, the ESF could be (floating point) infinite. This would also cause problems from an archiving perspective.
Suggestions: