public class DefaultDistributionFactory extends Object implements DistributionFactory
Constructor and Description |
---|
DefaultDistributionFactory() |
Modifier and Type | Method and Description |
---|---|
Distribution |
createBinomial(int n,
double p)
Create a distribution
|
Distribution |
createBinomial(int n,
INDArray p)
Create a distribution
|
Distribution |
createNormal(double mean,
double std)
Create a normal distribution
with the given mean and std
|
Distribution |
createNormal(INDArray mean,
double std)
Create a normal distribution
with the given mean and std
|
Distribution |
createUniform(double min,
double max)
Create a uniform distribution with the
given min and max
|
public Distribution createBinomial(int n, INDArray p)
DistributionFactory
createBinomial
in interface DistributionFactory
n
- the number of trialsp
- the probabilitiespublic Distribution createBinomial(int n, double p)
DistributionFactory
createBinomial
in interface DistributionFactory
n
- the number of trialsp
- the probabilitiespublic Distribution createNormal(INDArray mean, double std)
DistributionFactory
createNormal
in interface DistributionFactory
mean
- the meanstd
- the standard deviationpublic Distribution createNormal(double mean, double std)
DistributionFactory
createNormal
in interface DistributionFactory
mean
- the meanstd
- the stnadard deviationpublic Distribution createUniform(double min, double max)
DistributionFactory
createUniform
in interface DistributionFactory
min
- the minmax
- the maxCopyright © 2016. All Rights Reserved.