|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.math.PersistentObject
org.apache.mahout.math.jet.random.sampling.WeightedRandomSampler
@Deprecated public final class WeightedRandomSampler
Constructor Summary | |
---|---|
WeightedRandomSampler()
Deprecated. Calls BlockedRandomSampler(1,null). |
|
WeightedRandomSampler(int weight,
java.util.Random randomGenerator)
Deprecated. Chooses exactly one random element from successive blocks of weight input elements each. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Deprecated. Returns a deep copy of the receiver. |
int |
getWeight()
Deprecated. |
boolean |
sampleNextElement()
Deprecated. Chooses exactly one random element from successive blocks of weight input elements each. |
void |
setWeight(int weight)
Deprecated. Not yet commented. |
static void |
test(int weight,
int size)
Deprecated. Not yet commented. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WeightedRandomSampler()
public WeightedRandomSampler(int weight, java.util.Random randomGenerator)
weight
- the weight.randomGenerator
- a random number generator. Set this parameter to null to use the default random
number generator.Method Detail |
---|
public java.lang.Object clone()
clone
in class org.apache.mahout.math.PersistentObject
public int getWeight()
public boolean sampleNextElement()
public void setWeight(int weight)
weight
- intpublic static void test(int weight, int size)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |