pava-0.1.0.0: Greatest convex majorants and least concave minorants

Copyright(c) Dominik Schrempf 2020
LicenseGPL-3.0-or-later
Maintainerdominik.schrempf@gmail.com
Stabilityunstable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Statistics.Pava.Common

Description

Creation date: Mon Jun 8 11:03:12 2020.

Synopsis

Documentation

slope :: (Real a, Real b) => a -> a -> b -> b -> Double Source #

Calculate the slope between to points.

strictlyOrdered :: (Ord a, Vector v a, Vector v Bool) => v a -> Bool Source #

Check if vector is ordered strictly (<).

smooth :: (Vector v Bool, Vector v Double, Vector v Int) => v Int -> v Double -> v Double Source #

Fill in missing values of an indexed vector.

 smooth [-2, 2, 4, 5] [0, 4, 10, 88] = [0, 1, 2, 3, 4, 7, 10, 88]

unsafeSmooth :: (Vector v Bool, Vector v Double, Vector v Int) => v Int -> v Double -> v Double Source #

See smooth.

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

reverse3 :: ([a], [b], [c]) -> ([a], [b], [c]) Source #

Reverse lists in a three-tuple.