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

◆ linearized_view() [1/2]

template<typename T >
std::span< T > MayaFlux::Memory::HistoryBuffer< T >::linearized_view ( )
inline

Get mutable linearized view of entire history.

Returns
Mutable span ordered [newest → oldest], size = capacity

Always returns full-size span (size = capacity), even if fewer elements have been pushed. This matches mathematical convention where y[n-k] is defined for all k < N with initial conditions = 0.

Definition at line 536 of file RingBuffer.hpp.

537 {
538 for (size_t i = 0; i < m_count; ++i) {
540 }
541 return { m_linear_view.data(), m_count };
542 }

References MayaFlux::Memory::HistoryBuffer< T >::m_capacity, MayaFlux::Memory::HistoryBuffer< T >::m_count, MayaFlux::Memory::HistoryBuffer< T >::m_data, MayaFlux::Memory::HistoryBuffer< T >::m_head, and MayaFlux::Memory::HistoryBuffer< T >::m_linear_view.

Referenced by MayaFlux::Kinesis::SymbolicTrajectory< LatticeT, CellT >::crossings_in_window(), MayaFlux::Kinesis::SymbolicTrajectory< LatticeT, CellT >::dominant_cell(), MayaFlux::Nodes::Generator::Polynomial::process_sample(), MayaFlux::Kinesis::SymbolicTrajectory< LatticeT, CellT >::unique_cells_in_window(), MayaFlux::Nodes::Generator::Polynomial::update_context(), MayaFlux::Kinesis::Stochastic::Estimate::update_mad(), MayaFlux::Kinesis::Stochastic::Estimate::update_quiet_period(), MayaFlux::Kinesis::Stochastic::Estimate::update_rolling_variance(), and MayaFlux::Kinesis::Stochastic::Estimate::update_trend().

+ Here is the caller graph for this function: