Package com.github.rcaller.statistics
Class RandomNumberGenerator
- java.lang.Object
-
- com.github.rcaller.statistics.RandomNumberGenerator
-
public class RandomNumberGenerator extends Object
- Author:
- Mehmet Hakan Satman
-
-
Constructor Summary
Constructors Constructor Description RandomNumberGenerator(RCaller rcaller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]randomBeta(int n, double shape1, double shape2)double[]randomBinom(int n, int size, double p)double[]randomCauchy(int n, double location, double scale)double[]randomChisqare(int n, int df)double[]randomExponential(int n, double theta)double[]randomF(int n, int df1, int df2)double[]randomGamma(int n, double shape, double rate, double scale)double[]randomGeometric(int n, double p)double[]randomHyperGeometric(int amount, int n, int m, int k)double[]randomLogNormal(int n, double logmean, double logStandardDeviation)double[]randomMultinomial(int n, int size, double p)double[]randomNegativeBinom(int n, int size, double p)double[]randomNormal(int n, double mean, double standardDeviation)double[]randomPoisson(int n, double lambda)double[]randomT(int n, int df)double[]randomUniform(int n, double min, double max)double[]randomWeibull(int n, double shape, double scale)
-
-
-
Constructor Detail
-
RandomNumberGenerator
public RandomNumberGenerator(RCaller rcaller)
-
-
Method Detail
-
randomNormal
public double[] randomNormal(int n, double mean, double standardDeviation) throws Exception- Throws:
Exception
-
randomLogNormal
public double[] randomLogNormal(int n, double logmean, double logStandardDeviation) throws Exception- Throws:
Exception
-
randomUniform
public double[] randomUniform(int n, double min, double max) throws Exception- Throws:
Exception
-
randomBeta
public double[] randomBeta(int n, double shape1, double shape2) throws Exception- Throws:
Exception
-
randomCauchy
public double[] randomCauchy(int n, double location, double scale) throws Exception- Throws:
Exception
-
randomPoisson
public double[] randomPoisson(int n, double lambda) throws Exception- Throws:
Exception
-
randomBinom
public double[] randomBinom(int n, int size, double p) throws Exception- Throws:
Exception
-
randomNegativeBinom
public double[] randomNegativeBinom(int n, int size, double p) throws Exception- Throws:
Exception
-
randomMultinomial
public double[] randomMultinomial(int n, int size, double p) throws Exception- Throws:
Exception
-
randomGeometric
public double[] randomGeometric(int n, double p) throws Exception- Throws:
Exception
-
randomWeibull
public double[] randomWeibull(int n, double shape, double scale) throws Exception- Throws:
Exception
-
randomHyperGeometric
public double[] randomHyperGeometric(int amount, int n, int m, int k) throws Exception- Throws:
Exception
-
randomExponential
public double[] randomExponential(int n, double theta) throws Exception- Throws:
Exception
-
-