![]() |
VISR
0.11.6
Versatile Interactive Scene Renderer
|
#include <time_frequency_parameter.hpp>
Public Member Functions | |
TimeFrequencyParameter (std::size_t alignment=0) | |
TimeFrequencyParameter (ParameterConfigBase const &config) | |
TimeFrequencyParameter (TimeFrequencyParameterConfig const &config) | |
TimeFrequencyParameter (std::size_t dftSize, std::size_t numDftSamples, std::size_t numChannels, size_t alignment=0) | |
TimeFrequencyParameter (TimeFrequencyParameter< ElementType > const &rhs) | |
virtual | ~TimeFrequencyParameter () override |
TimeFrequencyParameter & | operator= (TimeFrequencyParameter< ElementType > const &rhs) |
void | resize (std::size_t dftSize, std::size_t numDftSamples, std::size_t numChannels) |
std::size_t | alignment () const |
std::size_t | dftSize () const |
std::size_t | dftSamples () const |
std::size_t | channelStride () const |
std::size_t | dftSampleStride () const |
std::size_t | numberOfChannels () const |
std::complex< ElementType > const * | dftSlice (std::size_t channelIdx, std::size_t dftSampleIdx) const |
std::complex< ElementType > * | dftSlice (std::size_t channelIdx, std::size_t dftSampleIdx) |
![]() | |
TypedParameterBase ()=default | |
virtual | ~TypedParameterBase ()=default |
ParameterType | type () final |
std::unique_ptr< ParameterBase > | clone () const final |
void | assign (ParameterBase const &rhs) override |
![]() | |
ParameterBase () | |
ParameterBase (const ParameterBase &) | |
ParameterBase & | operator= (const ParameterBase &) |
virtual | ~ParameterBase () |
Additional Inherited Members | |
![]() | |
using | ParameterConfigType = TimeFrequencyParameterConfig |
![]() | |
static const constexpr ParameterType | staticType () |
A type for passing matrixes between processing components. The template class is explicitly instantiated for the element types float and double.
ElementType | The data type of the elements of the matrix. |
visr::pml::TimeFrequencyParameter< ElementType >::TimeFrequencyParameter | ( | std::size_t | alignment = 0 | ) |
Default constructor, creates an empty matrix of dimension 0 x 0.
alignment | The alignment of the data, given in in multiples of the eleement size. |
|
explicit |
Construct a time-frequency parameter from a generic ParameterConfigBase object.
config | The configuration object, must have the dynamic type TimeFrequencyParameterConfig. |
std::invalid_argument | if the dynamic type of config does not match TimeFrequencyParameterConfig. |
|
explicit |
Construct a tie-frequency parameter from a dedicated TimeFrequencyParameterConfig config object.
config | The configuration object. |
|
explicit |
Construct a time-frequency parameter.
dftSize | The size of the DFT transform. |
numDftSamples | The number of DFT vectors containe in one parameter |
numChannels | The number of audio channels that are simultaneously transmitted in a time-frequency parameter. |
alignment | The alignment of the data, given in in multiples of the element size. |
visr::pml::TimeFrequencyParameter< ElementType >::TimeFrequencyParameter | ( | TimeFrequencyParameter< ElementType > const & | rhs | ) |
Copy constructor. Basically needed to enable the 'named constructor' functions below.
rhs | The object to be copied. |
|
overridevirtualdefault |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
TimeFrequencyParameter< ElementType > & visr::pml::TimeFrequencyParameter< ElementType >::operator= | ( | TimeFrequencyParameter< ElementType > const & | rhs | ) |
void visr::pml::TimeFrequencyParameter< ElementType >::resize | ( | std::size_t | dftSize, |
std::size_t | numDftSamples, | ||
std::size_t | numChannels | ||
) |
Change the matrix dimension. The content of the matrix is not kept, but reset to zeros.
dftSize | Size of the DFT. |
numDftSamples | The number of DFT coefficient sets in a single TimeFrequencyParameter |
numChannels | Number of parallel audio channels conted in one parameter. |
std::bad_alloc | If the creation of the new matrix fails. |