MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ transfer_curve()

ScalarField MayaFlux::Kinesis::transfer_curve ( const std::vector< float > &  coefficients)
inline

Transfer curve from polynomial coefficients (highest power first)

Parameters
coefficientsCoefficient vector, e.g. {1, 0, -1} evaluates as x^2 - 1
Returns
ScalarField: float -> float

Distinct from the Polynomial node which is a stateful, buffer-aware processor in the signal graph. This is a pure stateless evaluation.

Definition at line 94 of file TendencyFactories.hpp.

95{
96 return { .fn = [coefficients](const float& x) -> float {
97 float result = 0.0F;
98 float power = 1.0F;
99
100 for (float coefficient : std::views::reverse(coefficients)) {
101 result += coefficient * power;
102 power *= x;
103 }
104 return result;
105 } };
106}
void reverse(std::vector< double > &data)
Reverse time order of single-channel data (in-place)
Definition Yantra.cpp:614

References MayaFlux::Kinesis::Tendency< D, R >::fn.