MayaFlux 0.4.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 320 of file Yantra.cpp.

321{
322 if (channel_index >= channels.size()) {
323 error<std::out_of_range>(Journal::Component::API, Journal::Context::API, std::source_location::current(),
324 "Channel index out of range");
325 }
326 return peak(channels[channel_index]);
327}

References MayaFlux::Journal::API, and peak().

+ Here is the call graph for this function: