public class KNNAugSpaceSampler extends AbstractAugmentedSpaceSampler
| Constructor and Description |
|---|
KNNAugSpaceSampler(weka.core.Instances preciseInsts,
java.util.Random rng,
int k,
weka.core.neighboursearch.NearestNeighbourSearch nearestNeighbour) |
| Modifier and Type | Method and Description |
|---|---|
weka.core.Instance |
augSpaceSample()
Generates a point in the augmented space from the AugmentedSpaceSampler's precise dataset.
|
int |
getK() |
void |
setK(int k) |
generateAugPoint, getPreciseInsts, getRngpublic KNNAugSpaceSampler(weka.core.Instances preciseInsts,
java.util.Random rng,
int k,
weka.core.neighboursearch.NearestNeighbourSearch nearestNeighbour)
nearestNeighbour - The nearest neighbour search algorithm to use.public weka.core.Instance augSpaceSample()
IAugmentedSpaceSamplerpublic int getK()
public void setK(int k)
k - the k to set