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

◆ normalized() [2/2]

MAYAFLUX_API std::vector< double > MayaFlux::normalized ( const std::vector< double > &  data,
double  target_peak = 1.0 
)

Normalize single-channel data (non-destructive)

Parameters
dataInput data
target_peakTarget peak amplitude (default: 1.0)
Returns
Normalized copy of data

Definition at line 588 of file Yantra.cpp.

589{
590 auto out = data;
591 D::normalize(as_span(out), -target_peak, target_peak);
592 return out;
593}

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

Referenced by MayaFlux::Nodes::Input::HIDNode::apply_deadzone(), MayaFlux::Nodes::Network::GraphicsOperator::apply_one_to_one(), MayaFlux::Nodes::Input::HIDNode::parse_axis(), and MayaFlux::IO::FileReader::resolve_path().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: