#include "device/vr/util/sliding_average.h"
namespace device {
SlidingAverage::SlidingAverage(size_t window_size) : … { … }
SlidingAverage::~SlidingAverage() = default;
void SlidingAverage::AddSample(int64_t value) { … }
int64_t SlidingAverage::GetAverageOrDefault(int64_t default_value) const { … }
SlidingTimeDeltaAverage::SlidingTimeDeltaAverage(size_t window_size)
: … { … }
SlidingTimeDeltaAverage::~SlidingTimeDeltaAverage() = default;
void SlidingTimeDeltaAverage::AddSample(base::TimeDelta value) { … }
base::TimeDelta SlidingTimeDeltaAverage::GetAverageOrDefault(
base::TimeDelta default_value) const { … }
}