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

Language Guide / Functions ยท Generated namespace reference

erfc

klang::erfc

Complementary error function.

Returns 1 - erf(x). For non-negative inputs the result falls from 1 towards zero, which can be useful for a distance-based weighting curve.

-2.50.000407-1.250.5011.251.52.52ResultInput x
erfc(x)

Based on std::erfc.

Direct call

const signal weight = erfc(abs(sample));

Signal flow

const signal weight = abs(sample) >> erfc;