Skip to content

Function squarenorm

function squarenorm(const T1 &) dsp

template <numeric T1>
KFR_FUNCTION T1 squarenorm(const T1& x)

Square wave of a phase ramp in [0, 1) cycles (alias of rawsquare ).

Parameters
x Phase in normalized cycles ([0, 1) corresponds to one full cycle).
Returns
+1 or -1.

Fully qualified name: kfr::squarenorm(const T1 &)

Function squarenorm

function squarenorm(E1 &&) dsp

template <expression_argument E1>
KFR_FUNCTION expression_function<fn::squarenorm, E1> squarenorm(E1&& x)

Expression overload of squarenorm ; applies element-wise to an expression.

Parameters
x Phase expression in normalized cycles ([0, 1) corresponds to one full cycle).
Returns
Lazily-evaluated expression producing +1 or -1.

Fully qualified name: kfr::squarenorm(E1 &&)

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.