2022-02-27 04:25:30 +00:00
|
|
|
import {runAll} from '../rescript/ProgramEvaluator.gen';
|
2022-03-01 07:43:35 +00:00
|
|
|
import type { Inputs_SamplingInputs_t as SamplingInputs } from '../rescript/ProgramEvaluator.gen';
|
|
|
|
export type { SamplingInputs }
|
2022-02-27 04:25:30 +00:00
|
|
|
export type {t as DistPlus} from '../rescript/pointSetDist/DistPlus.gen';
|
2022-03-01 07:43:35 +00:00
|
|
|
|
|
|
|
export let defaultSamplingInputs : SamplingInputs = {
|
|
|
|
sampleCount : 10000,
|
|
|
|
outputXYPoints : 10000,
|
|
|
|
pointDistLength : 1000
|
|
|
|
}
|
|
|
|
|
|
|
|
export function run(squiggleString : string, samplingInputs? : SamplingInputs) {
|
|
|
|
let si : SamplingInputs = samplingInputs ? samplingInputs : defaultSamplingInputs
|
|
|
|
return runAll(squiggleString, si)
|
|
|
|
}
|