commit fd3c1a4084d350903ac8ea70d07a28ff0e6771fb
parent 909cb087a030b925403887a7c53c15d559e4fd6a
Author: ocramz <zocca.marco@gmail.com>
Date: Thu, 10 May 2018 08:20:49 +0200
fix readme
Diffstat:
M | README.md | | | 80 | ++++++++++++++++++++++++++++++++++++++++---------------------------------------- |
1 file changed, 40 insertions(+), 40 deletions(-)
diff --git a/README.md b/README.md
@@ -20,55 +20,55 @@ Examples
1. Transform a distribution's support while leaving its density structure
invariant:
- -- uniform over [0, 1] transformed to uniform over [1, 2]
- succ <$> uniform
+ -- uniform over [0, 1] transformed to uniform over [1, 2]
+ succ <$> uniform
2. Sequence distributions together using bind:
- -- a beta-binomial composite distribution
- beta 1 10 >>= binomial 10
+ -- a beta-binomial composite distribution
+ beta 1 10 >>= binomial 10
3. Use do-notation to build complex joint distributions from composable,
local conditionals:
- hierarchicalModel = do
- [c, d, e, f] <- replicateM 4 $ uniformR (1, 10)
- a <- gamma c d
- b <- gamma e f
- p <- beta a b
- n <- uniformR (5, 10)
- binomial n p
+ hierarchicalModel = do
+ [c, d, e, f] <- replicateM 4 $ uniformR (1, 10)
+ a <- gamma c d
+ b <- gamma e f
+ p <- beta a b
+ n <- uniformR (5, 10)
+ binomial n p
Included probability distributions
-------------
-## Continuous
-
-* Uniform
-* Normal
-* Log-Normal
-* Exponential
-* Inverse Gaussian
-* Laplace
-* Gamma
-* Inverse Gamma
-* Weibull
-* Chi-squared
-* Beta
-* Student t
-* Pareto
-* Dirichlet process
-* Symmetric Dirichlet process
-
-## Discrete
-
-* Discrete uniform
-* Zipf-Mandelbrot
-* Categorical
-* Bernoulli
-* Binomial
-* Negative Binomial
-* Multinomial
-* Poisson
-\ No newline at end of file
+* Continuous
+
+ * Uniform
+ * Normal
+ * Log-Normal
+ * Exponential
+ * Inverse Gaussian
+ * Laplace
+ * Gamma
+ * Inverse Gamma
+ * Weibull
+ * Chi-squared
+ * Beta
+ * Student t
+ * Pareto
+ * Dirichlet process
+ * Symmetric Dirichlet process
+
+* Discrete
+
+ * Discrete uniform
+ * Zipf-Mandelbrot
+ * Categorical
+ * Bernoulli
+ * Binomial
+ * Negative Binomial
+ * Multinomial
+ * Poisson
+\ No newline at end of file