WavPCMSampleValue Class Reference
#include <WavPCMSampleValue.h>
List of all members.
Constructor & Destructor Documentation
| WavPCMSampleValue::WavPCMSampleValue |
( |
int |
v |
) |
|
Member Function Documentation
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.
| EmbValue WavPCMSampleValue::calcEValue |
( |
int |
v |
) |
const [inline, private] |
| std::string WavPCMSampleValue::getName |
( |
void |
|
) |
const [virtual] |
return a short name uniquely identifying this sample value
Implements SampleValue.
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.
| int WavPCMSampleValue::getValue |
( |
void |
|
) |
const [inline] |
Member Data Documentation
The documentation for this class was generated from the following files: