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

◆ peak_channel()

MAYAFLUX_API double MayaFlux::peak_channel ( const std::vector< Kakshya::DataVariant > &  channels,
size_t  channel_index 
)

Find peak amplitude in specific channel.

Parameters
channelsVector of channel data
channel_indexIndex of channel to analyze
Returns
Peak amplitude value for specified channel

Definition at line 256 of file Yantra.cpp.

257{
258 if (channel_index >= channels.size()) {
259 throw std::out_of_range("Channel index out of range");
260 }
261 return peak(channels[channel_index]);
262}

References peak().

+ Here is the call graph for this function: