internal void Add(double Value) { if (m_Data.Count == m_Capacity) { m_TotalValue -= m_Data.PopHead(); } m_Data.PushTail(Value); m_TotalValue += Value; }
internal void Add(T Value) { if (m_Data.Count == m_Capacity) { m_TotalValue.SubtractEquals(m_Data.PopHead()); } m_Data.PushTail(Value); m_TotalValue.SubtractEquals(Value); }