28 #ifndef OVR_SensorFilter_h
29 #define OVR_SensorFilter_h
116 for (
int i = 0; i < n; i++)
186 for (
int k = 1; k <= m; k++)
189 int ind2 = n - m + k - 1;
192 float coef = 3.0f/(m*(m+1.0f)*(2.0f*m+1.0f));
193 result = result*coef;
208 template <
typename T>
248 for (
int i = 0; i < this->
ElemCount; i++)
307 #endif // OVR_SensorFilter_h
Vector3d GetFilteredValue() const
double Confidence() const
void PushFront(const T &e)
virtual bool IsFull() const
void PushBack(const Vector3d &e)
virtual Elem PopBack(void)
Vector3< T > Rotate(const Vector3< T > &v) const
void Update(Vector3d value, double deltaT, Quatd deltaQ=Quatd())
virtual void PushBack(const Elem &Item)
Vector3< T > Median() const
T SavitzkyGolayDerivative12() const
SensorFilter(int capacity=SensorFilterBase< Vector3< T > >::DefaultCapacity)
T SavitzkyGolaySmooth8() const
double runningTotalLengthSq
Matrix3< T > Covariance() const
OVR_FORCE_INLINE const T Clamp(const T v, const T minVal, const T maxVal)
SensorFilter< double > SensorFilterd
Vector3< T > PearsonCoefficient() const
virtual Elem & PeekFront(int count=0)
T SavitzkyGolayDerivative5() const
Vector3< T > Variance() const
virtual Elem PopFront(void)
SensorFilterBodyFrame(int capacity=SensorFilterBase< Vector3d >::DefaultCapacity)
Array::ValueType & Median(Array &arr)
T SavitzkyGolayDerivative4() const
virtual Elem & PeekBack(int count=0)
SensorFilter< float > SensorFilterf
void PushBack(const T &e)
SensorFilterBase(int capacity=CircularBuffer< T >::DefaultCapacity)
virtual void PushFront(const Elem &Item)
T SavitzkyGolayDerivativeN(int n) const