-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
``` xp_low = Distributions.quantile(Distributions.Normal(), low_percentile) xp_high = Distributions.quantile(Distributions.Normal(), high_percentile) return (gauss_int(xp_high) - gauss_int(xp_low)) / max( Distributions.cdf(Distributions.Normal(), xp_high) - Distributions.cdf(Distributions.Normal(), xp_low), eps(FT), ) ``` I think that this block is a doing a roundabout way to do nothing. `Distributions.quantile(percentile)` computes the `x` so that the CDF is `percentile`. Then, `Distributions.cdf(x)` computes the percentile corresponding to `x`. The two functions are one the inverse of the other when the same distribution is used.
- Loading branch information
Showing
2 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters