samplebpf
samplebpf(
@bpf ## llll (required)
@x ## int/float/list (required)
) -> int/float/list
Samples an interpolated value from a breakpoint function, given a list of normalized indices. See bpf function.
Arguments
@bpf[llll]: Breakpoint function (required)@x[int/float/list]: Sampling point/s (required)
Output
Interpolated bpf values [int/float/list]
Usage
$bpf = [0 1 0] [1 0 -0.25];
$x = arithmser(0, 1, null, 5); ## sampling points
$y = samplebpf($bpf, $x);
print($y)