mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
34 lines
787 B
C++
34 lines
787 B
C++
//
|
|
// MovingPercentileTests.h
|
|
// tests/shared/src
|
|
//
|
|
// Created by Yixin Wang on 6/4/2014
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_MovingPercentileTests_h
|
|
#define hifi_MovingPercentileTests_h
|
|
|
|
#include <QtTest/QtTest>
|
|
|
|
class MovingPercentileTests : public QObject {
|
|
Q_OBJECT
|
|
|
|
private slots:
|
|
// Tests
|
|
void testRunningMin ();
|
|
void testRunningMax ();
|
|
void testRunningMedian ();
|
|
|
|
private:
|
|
// Utilities and helper functions
|
|
int64_t random();
|
|
void testRunningMinForN (int n);
|
|
void testRunningMaxForN (int n);
|
|
void testRunningMedianForN (int n);
|
|
};
|
|
|
|
#endif // hifi_MovingPercentileTests_h
|