![]() |
Klang C++ 0.7.15
Language Reference (draft)
|
Language Guide / Functions · Generated namespace reference Error function. Approaches −1 and 1 as the input moves away from zero. Its smooth curve can shape bipolar samples. Based on erf
klang::erfstd::erf.Direct call
const signal shaped = erf(sample * 2);Signal flow
const signal shaped = sample * 2 >> erf;