|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mahout.clustering.UncommonDistributions
public final class UncommonDistributions
| Method Summary | |
|---|---|
static double |
rBeta(double shape1,
double shape2)
Returns a random sample from a beta distribution with the given shapes |
static int |
rBinomial(int n,
double p)
Returns an integer sampled according to this distribution. |
static double |
rGamma(double k,
double lambda)
Returns a double sampled according to this distribution. |
static double |
rNorm(double mean,
double sd)
Return a random value from a normal distribution with the given mean and standard deviation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double rGamma(double k,
double lambda)
public static double rBeta(double shape1,
double shape2)
shape1 - a double representing shape1shape2 - a double representing shape2
public static double rNorm(double mean,
double sd)
mean - a double mean valuesd - a double standard deviation
public static int rBinomial(int n,
double p)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||