Klang C++ 0.7.15
Language Reference (draft)
Loading...
Searching...
No Matches
erf

Language Guide / Functions · Generated namespace reference

erf

klang::erf

Error function.

Approaches −1 and 1 as the input moves away from zero. Its smooth curve can shape bipolar samples.

-2.5-1-1.25-0.5001.250.52.51ResultInput x
erf(x)

Based on std::erf.

Direct call

const signal shaped = erf(sample * 2);

Signal flow

const signal shaped = sample * 2 >> erf;