| Portability | portable |
|---|---|
| Stability | provisional |
| Maintainer | haskell.vivian.mcphail <at> gmail <dot> com |
| Safe Haskell | None |
Numeric.Statistics.PDF
Description
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
Instances
| Storable b => PDF (PDFFunction b) b |
Instances
| 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]