AudioSampleValue< Type, ValueType > Class Template Reference
a class representing an audio sample
#include <AudioSampleValue.h>
List of all members.
template<AUDIOSAMPLETYPE Type, class ValueType>
class AudioSampleValue< Type, ValueType >
Constructor & Destructor Documentation
template<AUDIOSAMPLETYPE Type, class ValueType >
Member Function Documentation
template<AUDIOSAMPLETYPE Type, class ValueType >
calculate the distance between the sample value s and this sample value
- Parameters:
-
| s | a sample value of the same type as this |
- Returns:
- the distance
Implements SampleValue.
template<AUDIOSAMPLETYPE Type, class ValueType>
template<AUDIOSAMPLETYPE Type, class ValueType>
template<AUDIOSAMPLETYPE Type, class ValueType >
std::string AudioSampleValue< Type, ValueType >::getName |
( |
void |
|
) |
const [inline, virtual] |
return a short name uniquely identifying this sample value
Implements SampleValue.
template<AUDIOSAMPLETYPE Type, class ValueType >
get the nearest (with the least distance to this sample value) sample value whose embedded value equals the specified target
- Parameters:
-
| t | the target embedded value |
If two or more target sample values have equal distance each of them should be returned with equal probability.
The returned SampleValue object should be deleted by the callser.
Implements SampleValue.
template<AUDIOSAMPLETYPE Type, class ValueType>
Member Data Documentation
template<AUDIOSAMPLETYPE Type, class ValueType>
template<AUDIOSAMPLETYPE Type, class ValueType>
template<AUDIOSAMPLETYPE Type, class ValueType>
The documentation for this class was generated from the following files: