Skip to content

Math.Erf

Name Mandatory Description Default Type
⬅️ Input The input float or sequence of floats to calculate the error function of. This can be any real number. FloatFloat2Float3Float4Color[Any]
Output ➡️ Outputs probability result of the error function of the input. The output is always between -1 and 1. FloatFloat2Float3Float4Color[Any]

This shard calculates the error function of the given input. The error function is related to the probability that a random variable with normal distribution of mean 0 and variance 1/2 falls in the range specified by the input value.

Examples

1
2
3
@f3(0.0 1.0 2.0) | Math.Erf | Log
Math.Subtract(@f3(0.0 0.84270079 0.99532226)) | Math.Abs
IsLess(@f3(0.00001 0.00001 0.00001)) | Assert.Is(true Break: true)

[info] [sample-wire] @f3(0 0.842701 0.995322)