public final class UncommonDistributions extends Object
| Modifier and Type | Method and Description |
|---|---|
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
|
public static double rGamma(double k,
double lambda)
public static double rBeta(double shape1,
double shape2)
shape1 - a double representing shape1shape2 - a double representing shape2public static double rNorm(double mean,
double sd)
mean - a double mean valuesd - a double standard deviationpublic static int rBinomial(int n,
double p)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.