#include <DummySampleValue.h>
|
EmbValue | EValue |
| the bit that is embedded in this sample value - must be set in constructor of derived class
|
UWORD32 | Key |
| the key of this sample value - must be different for two different sample values - must be set in constructor of derived class
|
◆ DummySampleValue()
DummySampleValue::DummySampleValue |
( |
UWORD16 | v | ) |
|
|
inline |
◆ calcDistance()
calculate the distance as | Value - s->Value |
Implements SampleValue.
◆ getName()
std::string DummySampleValue::getName |
( |
void | | ) |
const |
|
virtual |
return a short name uniquely identifying this sample value
Implements SampleValue.
◆ getNearestTargetSampleValue()
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.
◆ getValue()
UWORD16 DummySampleValue::getValue |
( |
void | | ) |
const |
|
inline |
◆ isNeighbour()
bool DummySampleValue::isNeighbour |
( |
const SampleValue * | s | ) |
const |
|
virtual |
return from the contents of the SampleValueAdjacencyMatrix in the DummyFile
Reimplemented from SampleValue.
◆ Value
The documentation for this class was generated from the following files: