Assumes that xs is ascending. We use a simple nearest-rank definition of
percentiles.
Equations
- Aesop.sortedPercentileD p dflt xs = if (xs.size == 0) = true then dflt else have rank := (xs.size.toFloat * p.toFloat).ceil.toUInt64.toNat.min (xs.size - 1); xs[rank]?.getD dflt
Instances For
Equations
- Aesop.sortedMedianD dflt xs = Aesop.sortedPercentileD { toFloat := 0.5 } dflt xs
Instances For
@[implicit_reducible]
Equations
- Aesop.StatsReport.instToStringNanos = { toString := Aesop.Nanos.printAsMillis }
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.