mirror of
https://github.com/ankitects/anki.git
synced 2026-01-09 03:53:55 -05:00
Remove 50% option
This commit is contained in:
parent
4c8b150353
commit
372d15578f
2 changed files with 1 additions and 12 deletions
|
|
@ -11,14 +11,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<InputBox>
|
<InputBox>
|
||||||
<label>
|
|
||||||
<input
|
|
||||||
type="radio"
|
|
||||||
bind:group={range}
|
|
||||||
value={PercentageRangeEnum.Percentile50}
|
|
||||||
/>
|
|
||||||
50%
|
|
||||||
</label>
|
|
||||||
<label>
|
<label>
|
||||||
<input
|
<input
|
||||||
type="radio"
|
type="radio"
|
||||||
|
|
|
||||||
|
|
@ -7,15 +7,12 @@ export enum PercentageRangeEnum {
|
||||||
All = 0,
|
All = 0,
|
||||||
Percentile100 = 1,
|
Percentile100 = 1,
|
||||||
Percentile95 = 2,
|
Percentile95 = 2,
|
||||||
Percentile50 = 3,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PercentageRangeToQuantile(range: PercentageRangeEnum) {
|
export function PercentageRangeToQuantile(range: PercentageRangeEnum) {
|
||||||
// These are halved because the quantiles are in both directions
|
|
||||||
return ({
|
return ({
|
||||||
[PercentageRangeEnum.Percentile100]: 1,
|
[PercentageRangeEnum.Percentile100]: 1,
|
||||||
[PercentageRangeEnum.Percentile95]: 0.975,
|
[PercentageRangeEnum.Percentile95]: 0.975, // this is halved because the quantiles are in both directions
|
||||||
[PercentageRangeEnum.Percentile50]: 0.75,
|
|
||||||
[PercentageRangeEnum.All]: undefined,
|
[PercentageRangeEnum.All]: undefined,
|
||||||
})[range];
|
})[range];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue