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

◆ derive_changes()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Eigen::MatrixXd>
void MayaFlux::Yantra::WaveformAnalyzer< InputType, OutputType >::derive_changes ( ChannelWaveform & out)
inlinestaticprivate

Definition at line 702 of file WaveformAnalyzer.hpp.

703 {
704 const size_t windows = out.level.size();
705 out.level_change.assign(windows, 0.0);
706 out.period_change.assign(windows, 0.0);
707 for (size_t w = 1; w < windows; ++w) {
708 out.level_change[w] = out.level[w] - out.level[w - 1];
709 if (out.period[w] > 0.0 && out.period[w - 1] > 0.0) {
710 out.period_change[w] = std::abs(out.period[w] - out.period[w - 1]) / out.period[w];
711 }
712 }
713 }
Time-domain descriptors of every channel, run on the GPU.

Referenced by MayaFlux::Yantra::WaveformAnalyzer< std::vector< Kakshya::DataVariant >, Eigen::MatrixXd >::analyze_implementation().

Here is the caller graph for this function: