LMMS
Loading...
Searching...
No Matches
juce::dsp::FFTUnitTest Struct Reference
Inheritance diagram for juce::dsp::FFTUnitTest:
juce::UnitTest

Classes

struct  RealTest
struct  FrequencyOnlyTest
struct  ComplexTest

Public Member Functions

 FFTUnitTest ()
template<class TheTest>
void runTestForAllTypes (const char *unitTestName)
void runTest () override
Public Member Functions inherited from juce::UnitTest
 UnitTest (const String &name, const String &category=String())
virtual ~UnitTest ()
const StringgetName () const noexcept
const StringgetCategory () const noexcept
void performTest (UnitTestRunner *runner)
virtual void initialise ()
virtual void shutdown ()
void beginTest (const String &testName)
void expect (bool testResult, const String &failureMessage=String())
template<class ValueType>
void expectEquals (ValueType actual, ValueType expected, String failureMessage=String())
template<class ValueType>
void expectNotEquals (ValueType value, ValueType valueToCompareTo, String failureMessage=String())
template<class ValueType>
void expectGreaterThan (ValueType value, ValueType valueToCompareTo, String failureMessage=String())
template<class ValueType>
void expectLessThan (ValueType value, ValueType valueToCompareTo, String failureMessage=String())
template<class ValueType>
void expectGreaterOrEqual (ValueType value, ValueType valueToCompareTo, String failureMessage=String())
template<class ValueType>
void expectLessOrEqual (ValueType value, ValueType valueToCompareTo, String failureMessage=String())
template<class ValueType>
void expectWithinAbsoluteError (ValueType actual, ValueType expected, ValueType maxAbsoluteError, String failureMessage=String())
void logMessage (const String &message)
Random getRandom () const

Static Public Member Functions

static void fillRandom (Random &random, Complex< float > *buffer, size_t n)
static void fillRandom (Random &random, float *buffer, size_t n)
static Complex< float > freqConvolution (const Complex< float > *in, float freq, size_t n)
static void performReferenceFourier (const Complex< float > *in, Complex< float > *out, size_t n, bool reverse)
static void performReferenceFourier (const float *in, Complex< float > *out, size_t n, bool reverse)
template<typename Type>
static bool checkArrayIsSimilar (Type *a, Type *b, size_t n) noexcept
Static Public Member Functions inherited from juce::UnitTest
static Array< UnitTest * > & getAllTests ()
static Array< UnitTest * > getTestsInCategory (const String &category)
static StringArray getAllCategories ()

Constructor & Destructor Documentation

◆ FFTUnitTest()

juce::dsp::FFTUnitTest::FFTUnitTest ( )
inline

Member Function Documentation

◆ checkArrayIsSimilar()

template<typename Type>
bool juce::dsp::FFTUnitTest::checkArrayIsSimilar ( Type * a,
Type * b,
size_t n )
inlinestaticnoexcept

◆ fillRandom() [1/2]

void juce::dsp::FFTUnitTest::fillRandom ( Random & random,
Complex< float > * buffer,
size_t n )
inlinestatic

◆ fillRandom() [2/2]

void juce::dsp::FFTUnitTest::fillRandom ( Random & random,
float * buffer,
size_t n )
inlinestatic

◆ freqConvolution()

Complex< float > juce::dsp::FFTUnitTest::freqConvolution ( const Complex< float > * in,
float freq,
size_t n )
inlinestatic

◆ performReferenceFourier() [1/2]

void juce::dsp::FFTUnitTest::performReferenceFourier ( const Complex< float > * in,
Complex< float > * out,
size_t n,
bool reverse )
inlinestatic

◆ performReferenceFourier() [2/2]

void juce::dsp::FFTUnitTest::performReferenceFourier ( const float * in,
Complex< float > * out,
size_t n,
bool reverse )
inlinestatic

◆ runTest()

void juce::dsp::FFTUnitTest::runTest ( )
inlineoverridevirtual

Implement this method in your subclass to actually run your tests.

The content of your implementation should call beginTest() and expect() to perform the tests.

Implements juce::UnitTest.

◆ runTestForAllTypes()

template<class TheTest>
void juce::dsp::FFTUnitTest::runTestForAllTypes ( const char * unitTestName)
inline

The documentation for this struct was generated from the following file: