MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / interquartileRange

Function interquartileRange

src/compute-engine/numerics/statistics.ts:428–434  ·  view source on GitHub ↗
(values: Iterable<number>)

Source from the content-addressed store, hash-verified

426 // Moment coefficient of skewness g₁ = m3 / m2^(3/2) = m3 / (m2·√m2).
427 return m3.div(m2.mul(m2.sqrt(prec)), prec);
428}
429
430/**
431 * The most frequent value of a machine sample. Among values that occur
432 * equally often, the SMALLEST one is the mode, the same tie rule as the exact
433 * kernel (`exactMode` in `library/statistics.ts`), so `evaluate()` and `.N()`
434 * agree on which value wins a tie.
435 *
436 * Two data count together only when their doubles are equal. That is the
437 * precision of the sample: two machine values that differ in the last bit

Callers 1

statistics.tsFile · 0.90

Calls 1

quartilesFunction · 0.85

Tested by

no test coverage detected