mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -05:00
Fix: Half the percentiles
This commit is contained in:
parent
2d790920d3
commit
4c8b150353
1 changed files with 3 additions and 2 deletions
|
|
@ -11,10 +11,11 @@ export enum PercentageRangeEnum {
|
|||
}
|
||||
|
||||
export function PercentageRangeToQuantile(range: PercentageRangeEnum) {
|
||||
// These are halved because the quantiles are in both directions
|
||||
return ({
|
||||
[PercentageRangeEnum.Percentile100]: 1,
|
||||
[PercentageRangeEnum.Percentile95]: 0.95,
|
||||
[PercentageRangeEnum.Percentile50]: 0.5,
|
||||
[PercentageRangeEnum.Percentile95]: 0.975,
|
||||
[PercentageRangeEnum.Percentile50]: 0.75,
|
||||
[PercentageRangeEnum.All]: undefined,
|
||||
})[range];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue