Remove 50% option

This commit is contained in:
Luc Mcgrady 2025-11-08 15:52:30 +00:00
parent 4c8b150353
commit 372d15578f
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C
2 changed files with 1 additions and 12 deletions

View file

@ -11,14 +11,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
</script>
<InputBox>
<label>
<input
type="radio"
bind:group={range}
value={PercentageRangeEnum.Percentile50}
/>
50%
</label>
<label>
<input
type="radio"

View file

@ -7,15 +7,12 @@ export enum PercentageRangeEnum {
All = 0,
Percentile100 = 1,
Percentile95 = 2,
Percentile50 = 3,
}
export function PercentageRangeToQuantile(range: PercentageRangeEnum) {
// These are halved because the quantiles are in both directions
return ({
[PercentageRangeEnum.Percentile100]: 1,
[PercentageRangeEnum.Percentile95]: 0.975,
[PercentageRangeEnum.Percentile50]: 0.75,
[PercentageRangeEnum.Percentile95]: 0.975, // this is halved because the quantiles are in both directions
[PercentageRangeEnum.All]: undefined,
})[range];
}