Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
findElbow :: (RealFloat a, Numeric a) => MinMax -> Matrix a -> Maybe (Int, (a, a)) Source #
Get the elbow point (and its index) of a two-dimensional distribution. Uses the Max or Min to identify convex / concave point, depending on the choice (for positive x and y, top left hump would be Max, bottom right dip would be Min). Matrix rows are observations, columns are dimensions.
findElbowList :: (RealFloat a, Numeric a) => MinMax -> [[a]] -> Maybe (Int, (a, a)) Source #
Get the elbow point (and its index) of a two-dimensional distribution. Uses the Max or Min to identify convex / concave point, depending on the choice (for positive x and y, top left hump would be Max, bottom right dip would be Min). Matrix rows are observations, columns are dimensions. List of columns.
getRotationAngle :: (RealFloat a, Numeric a) => Matrix a -> Maybe a Source #
Use the minimum and maximum points to identify the appropriate rotation in radians. Matrix rows are observations, columns are dimensions.