MayaFlux 0.1.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 254 of file Yantra.cpp.

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

References peak().

+ Here is the call graph for this function: