Skip to content

Elongation shape factor might be emitting NAN values #384

@fcooper8472

Description

@fcooper8472

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:

  • Ensure it's impossible for the ESF to be NAN
  • Warn if the ESF is infinite (which is valid, but might still be annoying)

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions