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

◆ calculate_num_windows()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = Eigen::VectorXd>
size_t MayaFlux::Yantra::StatisticalAnalyzer< InputType, OutputType >::calculate_num_windows ( size_t  data_size) const
inlineprivate

Calculate number of windows for given data size.

Definition at line 547 of file StatisticalAnalyzer.hpp.

548 {
549 if (data_size < m_window_size)
550 return 0;
551 return (data_size - m_window_size) / m_hop_size + 1;
552 }

References MayaFlux::Yantra::StatisticalAnalyzer< InputType, OutputType >::m_hop_size, and MayaFlux::Yantra::StatisticalAnalyzer< InputType, OutputType >::m_window_size.

Referenced by MayaFlux::Yantra::StatisticalAnalyzer< InputType, OutputType >::compute_statistical_values().

+ Here is the caller graph for this function: