MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / monte-carlo.test.ts

File monte-carlo.test.ts

test/compute-engine/monte-carlo.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { monteCarloEstimate } from '../../src/compute-engine/numerics/monte-carlo';
2import { foldSeed, frameDraw } from '../../src/compute-engine/numerics/random';
3
4// Monte Carlo is stochastic, but this suite is NOT: every estimate draws from

Callers

nothing calls this directly

Calls 6

monteCarloEstimateFunction · 0.90
isFiniteFunction · 0.85
sinMethod · 0.80
expectApproxFunction · 0.70
expMethod · 0.65
sqrtMethod · 0.65

Tested by

no test coverage detected