pava-0.1.1.4: Greatest convex majorants and least concave minorants
Copyright2021 Dominik Schrempf
LicenseGPL-3.0-or-later
Maintainerdominik.schrempf@gmail.com
Stabilityunstable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Statistics.Lcm

Description

Creation date: Sat Jun 6 16:36:32 2020.

For general help, please refer to the README distributed with the library.

Synopsis

Documentation

lcm :: (Real a, Real b, Show a, Vector v a, Show b, Vector v b, Vector v Bool) => v a -> v b -> ([a], [b], [Double]) Source #

Greatest convex minorant. Uses the Pool Adjacent Violators Algorithm (PAVA). It is required that the predictors are ordered with no ties, and that the lengths of the vectors are equal.

Usage:

 lcm predictors responses = (indices, values, slopes)

unsafeLcm :: (Real a, Real b, Show a, Vector v a, Show b, Vector v b) => v a -> v b -> ([a], [b], [Double]) Source #

See lcm.

Assume that: - the lengths of the provided vectors are equal; - the predictors are ordered.