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

Function exactData

src/compute-engine/library/statistics.ts:681–688  ·  view source on GitHub ↗

* If every value flattened from `ops` is an exact, finite real number, return * them as boxed expressions; otherwise `null` (caller falls back to the float * path).

(ops: ReadonlyArray<Expression>)

Source from the content-addressed store, hash-verified

679 const vals = exactData(xs);
680 if (vals) return exactMedianOf(engine, sortExact(vals));
681 }
682 return engine.number(
683 bignumPreferred(engine)
684 ? bigMedian(bigScalarsOf(xs))
685 : median(scalarsOf(xs))
686 );
687 },
688 },
689
690 Variance: {
691 description: 'Sample variance of a collection of numbers.',

Callers 1

statistics.tsFile · 0.85

Calls 2

isNumberFunction · 0.90
flattenArgumentsFunction · 0.85

Tested by

no test coverage detected