math.erf() 函数
math.erf() 返回 x 的误差函数。
函数类型签名
(x: float) => float
有关更多信息,请参见 Function type signatures。
参数
x
(必填) 要操作的值。
示例
返回一个值的误差函数。
import "math"
math.erf(x: 22.6)// 1.0
在map中使用math.erf
import "math"
import "sampledata"
sampledata.float()
|> map(fn: (r) => ({r with _value: math.erf(x: r._value)}))