Portability | portable |
---|---|
Stability | provisional |
Maintainer | haskell.vivian.mcphail <at> gmail <dot> com |
Safe Haskell | None |
Probability Distribution Function interface
- data PDFFunction a
- class PDF b a where
- probability :: b -> Vector a -> Vector Double
- pdfFromFunction :: (a -> Double) -> PDFFunction a
data PDFFunction a Source
a probability distribution function
a PDF interface
Storable b => PDF (PDFFunction b) b |
probability :: b -> Vector a -> Vector DoubleSource
calculate a probability
PDF Histogram Double | |
PDF Histogram2D (Double, Double) | |
Storable b => PDF (PDFFunction b) b |
Creation
pdfFromFunction :: (a -> Double) -> PDFFunction aSource
create a PDF from an arbtrary function f :-> [0,1]