Copyright | (c) 2015 Mihai Maruseac |
---|---|
License | BSD3 |
Maintainer | mihai.maruseac@maruseac.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
The Laplace distribution. This is the continuous probability defined as the difference of two iid exponential random variables or a Brownian motion evaluated as exponentially distributed times. It is used in differential privacy (Laplace Method), speech recognition and least absolute deviations method (Laplace's first law of errors, giving a robust regression method)
- data LaplaceDistribution
- laplace :: Double -> Double -> LaplaceDistribution
- laplaceE :: Double -> Double -> Maybe LaplaceDistribution
- ldLocation :: LaplaceDistribution -> Double
- ldScale :: LaplaceDistribution -> Double
Documentation
data LaplaceDistribution Source #
Eq LaplaceDistribution Source # | |
Data LaplaceDistribution Source # | |
Read LaplaceDistribution Source # | |
Show LaplaceDistribution Source # | |
Generic LaplaceDistribution Source # | |
ToJSON LaplaceDistribution Source # | |
FromJSON LaplaceDistribution Source # | |
Binary LaplaceDistribution Source # | |
ContGen LaplaceDistribution Source # | |
Entropy LaplaceDistribution Source # | |
MaybeEntropy LaplaceDistribution Source # | |
Variance LaplaceDistribution Source # | |
MaybeVariance LaplaceDistribution Source # | |
Mean LaplaceDistribution Source # | |
MaybeMean LaplaceDistribution Source # | |
ContDistr LaplaceDistribution Source # | |
Distribution LaplaceDistribution Source # | |
FromSample LaplaceDistribution Double Source # | Create Laplace distribution from sample. No tests are made to check whether it truly is Laplace. Location of distribution estimated as median of sample. |
type Rep LaplaceDistribution Source # | |
Constructors
:: Double | Location |
-> Double | Scale |
-> LaplaceDistribution |
Create an Laplace distribution.
:: Double | Location |
-> Double | Scale |
-> Maybe LaplaceDistribution |
Create an Laplace distribution.
Accessors
ldLocation :: LaplaceDistribution -> Double Source #
Location.
ldScale :: LaplaceDistribution -> Double Source #
Scale.