![]() |
Klang C++ 0.7.15
Language Reference (draft)
|
Language Guide / Functions ยท Generated namespace reference Positive difference of two values. Returns the first argument minus the second, with a minimum of zero. For example, it can measure how far a sample exceeds a threshold. Based on fdim
klang::fdimstd::fdim.Direct call
const signal excess = fdim(sample, 0.25);Signal flow
const signal excess = sample >> fdim(0.25);