View source: R/histogram-interpolation.R
hist_interpol | R Documentation |
This function interpolates the distribution over a bracket with an histogram (that is, piecewise constant density with two values, and piecewise linear quantile function with two slopes).
hist_interpol(p0, p1, q0, q1, average)
p0 |
A value in [0, 1]. |
p1 |
A value in [0, 1]. |
q0 |
The |
q1 |
The |
average |
The average value in the bracket. |
A list with the following components:
The average inside the bracket.
A value in [0, 1].
A value in [0, 1].
The p0
-th quantile.
The p1
-th quantile.
A value in [p0
, p1
].
A value in [q0
, q1
]: the pstar
-th quantile.
The value of the density in [q0
, qstar
].
The value of the density in [qstar
, q1
].
Thomas Blanchet, Juliette Fournier, Thomas Piketty
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.