probability-0.2.5.2: Probabilistic Functional Programming

Safe HaskellSafe
LanguageHaskell98

Numeric.Probability.Expectation

Synopsis

Documentation

class ToFloat a where Source #

Minimal complete definition

toFloat

Methods

toFloat :: a -> Float Source #

Instances
ToFloat Float Source # 
Instance details

Defined in Numeric.Probability.Expectation

Methods

toFloat :: Float -> Float Source #

ToFloat Int Source # 
Instance details

Defined in Numeric.Probability.Expectation

Methods

toFloat :: Int -> Float Source #

ToFloat Integer Source # 
Instance details

Defined in Numeric.Probability.Expectation

ToFloat T Source # 
Instance details

Defined in Numeric.Probability.Expectation

Methods

toFloat :: T -> Float Source #

class FromFloat a where Source #

Minimal complete definition

fromFloat

Methods

fromFloat :: Float -> a Source #

Instances
FromFloat Float Source # 
Instance details

Defined in Numeric.Probability.Expectation

FromFloat Int Source # 
Instance details

Defined in Numeric.Probability.Expectation

Methods

fromFloat :: Float -> Int Source #

FromFloat Integer Source # 
Instance details

Defined in Numeric.Probability.Expectation

class Expected a where Source #

Minimal complete definition

expected

Methods

expected :: a -> Float Source #

Instances
Expected Float Source # 
Instance details

Defined in Numeric.Probability.Expectation

Methods

expected :: Float -> Float Source #

Expected Int Source # 
Instance details

Defined in Numeric.Probability.Expectation

Methods

expected :: Int -> Float Source #

Expected Integer Source # 
Instance details

Defined in Numeric.Probability.Expectation

Expected a => Expected [a] Source # 
Instance details

Defined in Numeric.Probability.Expectation

Methods

expected :: [a] -> Float Source #

(ToFloat prob, Expected a) => Expected (T prob a) Source # 
Instance details

Defined in Numeric.Probability.Expectation

Methods

expected :: T prob a -> Float Source #

floatDist :: (ToFloat prob, Expected a) => T prob a -> T Float Float Source #

variance :: Expected a => Dist a -> Float Source #

statistical analyses