elbow-0.1.0.0: Find the elbow point.

Safe HaskellNone
LanguageHaskell2010

Math.Elbow

Synopsis

Documentation

findElbow :: (RealFloat a, Numeric a) => Matrix a -> Maybe (Int, (a, a)) Source #

Get the elbow point (and its index) of a two-dimensional distribution. Matrix rows are observations, columns are dimensions.

findElbowList :: (RealFloat a, Numeric a) => [[a]] -> Maybe (Int, (a, a)) Source #

Get the elbow point (and its index) of a two-dimensional distribution. 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.