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

Function casePoints

benchmarks/audit/audit.ts:51–52  ·  view source on GitHub ↗
(c: any)

Source from the content-addressed store, hash-verified

49// Sample points are scalars (univariate, substituted for x) or tuples matching
50// the case's `verify.vars` (multivariate — all variables substituted at once).
51const casePoints = (c: any): number[][] =>
52 (c.verify.points || []).map((p: any) => (Array.isArray(p) ? p.map(parseFloat) : [parseFloat(p)]));
53const sampleResult = (boxed: any, c: any) => {
54 const vars: string[] = c.verify.vars ?? ['x'];
55 return casePoints(c).map((tuple) => {

Callers 1

sampleResultFunction · 0.85

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected