HLearn-distributions-0.2.1: Distributions for use with the HLearn library

Safe Haskell None

HLearn.Models.Distributions.Moments

Description

The method of moments can be used to estimate a number of commonly used distributions. This module is still under construction as I work out the best way to handle morphisms from the Moments type to types of other distributions. For more information, see the wikipedia entry: https://en.wikipedia.org/wiki/Method_of_moments_(statistics)

# Documentation

Constructors

 MomentsParams

Instances

 (Semigroup (Moments prob n), Monoid (Moments prob n), Model MomentsParams (Moments prob n), Unbox prob, Fractional prob, SingI Nat n) => HomTrainer MomentsParams prob (Moments prob n) Model MomentsParams (Moments prob n) Model MomentsParams (Moments prob n) => DefaultModel MomentsParams (Moments prob n) (Unbox prob, Fractional prob) => Morphism (Normal prob) MomentsParams (Moments prob 2)

newtype Moments prob n Source

Constructors

 Moments (Vector prob)

Instances

 (Semigroup (Moments prob n), Monoid (Moments prob n), Model MomentsParams (Moments prob n), Unbox prob, Fractional prob, SingI Nat n) => HomTrainer MomentsParams prob (Moments prob n) Model MomentsParams (Moments prob n) Model MomentsParams (Moments prob n) => DefaultModel MomentsParams (Moments prob n) (Fractional prob, Unbox prob) => LeftOperator prob (Moments prob n) (Fractional prob, Unbox prob) => RightOperator prob (Moments prob n) (Unbox prob, Fractional prob) => Morphism (Normal prob) MomentsParams (Moments prob 2) (Eq prob, Unbox prob) => Eq (Moments prob n) (Eq (Moments prob n), Ord prob, Unbox prob) => Ord (Moments prob n) (Read prob, Unbox prob) => Read (Moments prob n) (Show prob, Unbox prob) => Show (Moments prob n) (Num prob, Unbox prob) => Semigroup (Moments prob n) (Num prob, Unbox prob, SingI Nat n) => Monoid (Moments prob n) (Semigroup (Moments prob n), Num prob, Unbox prob) => RegularSemigroup (Moments prob n) (Unbox prob, Fractional prob) => Morphism (Moments prob 2) NormalParams (Normal prob) (Unbox prob, Fractional prob) => Morphism (Moments prob 2) BetaParams (Beta prob)