2022-03-28 12:39:07 +00:00
|
|
|
type params = {
|
|
|
|
sampleCount: int,
|
|
|
|
xyPointLength: int,
|
|
|
|
}
|
|
|
|
|
|
|
|
type outputType = [
|
|
|
|
| #Dist(GenericDist_Types.genericDist)
|
|
|
|
| #Error(GenericDist_Types.error)
|
|
|
|
| #Float(float)
|
|
|
|
| #String(string)
|
|
|
|
]
|
|
|
|
|
2022-03-28 19:14:39 +00:00
|
|
|
let run: (params, GenericDist_Types.Operation.genericFunctionCall) => outputType
|
|
|
|
let runFromDist: (
|
|
|
|
params,
|
|
|
|
GenericDist_Types.Operation.fromDist,
|
|
|
|
GenericDist_Types.genericDist,
|
|
|
|
) => outputType
|
|
|
|
let runFromFloat: (params, GenericDist_Types.Operation.fromDist, float) => outputType
|
2022-03-29 18:36:54 +00:00
|
|
|
let fmap: (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>
|
|
|
|
}
|