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

◆ set_window()

void MayaFlux::Kinesis::Stochastic::Estimate::set_window ( size_t  window)

Sets the window size used by windowed models.

Clears any accumulated window contents; the estimate rebuilds from the next window worth of samples.

Definition at line 21 of file Estimate.cpp.

22{
23 m_window = window == 0 ? 1 : window;
26}
std::weak_ptr< Core::Window > window
Definition Picker.cpp:23
Memory::HistoryBuffer< double > m_history
Definition Estimate.hpp:400
void resize(size_t new_capacity)
Resize buffer capacity.

References m_history, m_state, m_window, MayaFlux::Memory::HistoryBuffer< T >::resize(), MayaFlux::Kinesis::Stochastic::EstimateState::sample_count, and window.

+ Here is the call graph for this function: