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

◆ with_gain() [2/2]

MAYAFLUX_API std::vector< double > MayaFlux::with_gain ( const std::vector< double > &  data,
double  gain_factor 
)

Apply gain to single-channel data (non-destructive)

Parameters
dataInput data
gain_factorMultiplication factor
Returns
Modified copy of data

Definition at line 543 of file Yantra.cpp.

544{
545 auto out = data;
546 D::linear(as_span(out), gain_factor, 0.0);
547 return out;
548}

References MayaFlux::Kinesis::Discrete::linear().

+ Here is the call graph for this function: