PointSet -> Pointset
This commit is contained in:
parent
08a7b8586b
commit
628b105535
|
@ -333,7 +333,7 @@ module FnDefinition = {
|
||||||
let isMatch = (t: t, args: array<internalExpressionValue>) => {
|
let isMatch = (t: t, args: array<internalExpressionValue>) => {
|
||||||
let argValues = FRType.matchWithExpressionValueArray(t.inputs, args)
|
let argValues = FRType.matchWithExpressionValueArray(t.inputs, args)
|
||||||
switch argValues {
|
switch argValues {
|
||||||
| Some(values) => true
|
| Some(_) => true
|
||||||
| None => false
|
| None => false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
open FunctionRegistry_Core
|
open FunctionRegistry_Core
|
||||||
open FunctionRegistry_Helpers
|
open FunctionRegistry_Helpers
|
||||||
|
|
||||||
let nameSpace = "PointSet"
|
let nameSpace = "Pointset"
|
||||||
let requiresNamespace = true
|
let requiresNamespace = true
|
||||||
|
|
||||||
let inputsTodist = (inputs: array<FunctionRegistry_Core.frValue>, makeDist) => {
|
let inputsTodist = (inputs: array<FunctionRegistry_Core.frValue>, makeDist) => {
|
||||||
|
@ -28,6 +28,15 @@ let library = [
|
||||||
~name="makeContinuous",
|
~name="makeContinuous",
|
||||||
~nameSpace,
|
~nameSpace,
|
||||||
~requiresNamespace,
|
~requiresNamespace,
|
||||||
|
~examples=[
|
||||||
|
`Pointset.makeContinuous([
|
||||||
|
{x: 0, y: 0.2},
|
||||||
|
{x: 1, y: 0.7},
|
||||||
|
{x: 2, y: 0.8},
|
||||||
|
{x: 3, y: 0.2}
|
||||||
|
])`,
|
||||||
|
],
|
||||||
|
~output=ReducerInterface_InternalExpressionValue.EvtDistribution,
|
||||||
~definitions=[
|
~definitions=[
|
||||||
FnDefinition.make(
|
FnDefinition.make(
|
||||||
~name="makeContinuous",
|
~name="makeContinuous",
|
||||||
|
@ -42,6 +51,15 @@ let library = [
|
||||||
~name="makeDiscrete",
|
~name="makeDiscrete",
|
||||||
~nameSpace,
|
~nameSpace,
|
||||||
~requiresNamespace,
|
~requiresNamespace,
|
||||||
|
~examples=[
|
||||||
|
`Pointset.makeDiscrete([
|
||||||
|
{x: 0, y: 0.2},
|
||||||
|
{x: 1, y: 0.7},
|
||||||
|
{x: 2, y: 0.8},
|
||||||
|
{x: 3, y: 0.2}
|
||||||
|
])`,
|
||||||
|
],
|
||||||
|
~output=ReducerInterface_InternalExpressionValue.EvtDistribution,
|
||||||
~definitions=[
|
~definitions=[
|
||||||
FnDefinition.make(
|
FnDefinition.make(
|
||||||
~name="makeDiscrete",
|
~name="makeDiscrete",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user