2022-03-28 12:39:07 +00:00
|
|
|
type params = {
|
|
|
|
sampleCount: int,
|
|
|
|
xyPointLength: int,
|
|
|
|
}
|
|
|
|
|
2022-03-31 13:27:36 +00:00
|
|
|
type outputType =
|
|
|
|
| Dist(GenericDist_Types.genericDist)
|
|
|
|
| Float(float)
|
|
|
|
| String(string)
|
|
|
|
| GenDistError(GenericDist_Types.error)
|
2022-03-28 12:39:07 +00:00
|
|
|
|
2022-03-30 01:28:14 +00:00
|
|
|
let run: (params, GenericDist_Types.Operation.genericFunctionCallInfo) => outputType
|
2022-03-28 19:14:39 +00:00
|
|
|
let runFromDist: (
|
|
|
|
params,
|
|
|
|
GenericDist_Types.Operation.fromDist,
|
|
|
|
GenericDist_Types.genericDist,
|
|
|
|
) => outputType
|
|
|
|
let runFromFloat: (params, GenericDist_Types.Operation.fromDist, float) => outputType
|
2022-03-31 13:27:36 +00:00
|
|
|
let outputMap: (
|
|
|
|
params,
|
|
|
|
outputType,
|
|
|
|
GenericDist_Types.Operation.singleParamaterFunction,
|
|
|
|
) => outputType
|
2022-03-28 19:14:39 +00:00
|
|
|
|
|
|
|
module Output: {
|
|
|
|
let toDist: outputType => option<GenericDist_Types.genericDist>
|
|
|
|
let toFloat: outputType => option<float>
|
|
|
|
let toString: outputType => option<string>
|
|
|
|
let toError: outputType => option<GenericDist_Types.error>
|
|
|
|
}
|