Interface DistributionFactory
-
- All Known Implementing Classes:
DefaultDistributionFactory
public interface DistributionFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DistributioncreateBinomial(int n, double p)Create a distributionDistributioncreateBinomial(int n, INDArray p)Create a distributionDistributioncreateConstant(double value)Creates constant distributionDistributioncreateLogNormal(double mean, double std)Creates a log-normal distributionDistributioncreateNormal(double mean, double std)Create a normal distribution with the given mean and stdDistributioncreateNormal(INDArray mean, double std)Create a normal distribution with the given mean and stdDistributioncreateOrthogonal(double gain)Creates orthogonal distributionDistributioncreateTruncatedNormal(double mean, double std)Creates truncated normal distributionDistributioncreateUniform(double min, double max)Create a uniform distribution with the given min and max
-
-
-
Method Detail
-
createBinomial
Distribution createBinomial(int n, INDArray p)
Create a distribution- Parameters:
n- the number of trialsp- the probabilities- Returns:
- the biniomial distribution with the given parameters
-
createBinomial
Distribution createBinomial(int n, double p)
Create a distribution- Parameters:
n- the number of trialsp- the probabilities- Returns:
- the biniomial distribution with the given parameters
-
createNormal
Distribution createNormal(INDArray mean, double std)
Create a normal distribution with the given mean and std- Parameters:
mean- the meanstd- the standard deviation- Returns:
- the distribution with the given mean and standard deviation
-
createNormal
Distribution createNormal(double mean, double std)
Create a normal distribution with the given mean and std- Parameters:
mean- the meanstd- the stnadard deviation- Returns:
- the distribution with the given mean and standard deviation
-
createUniform
Distribution createUniform(double min, double max)
Create a uniform distribution with the given min and max- Parameters:
min- the minmax- the max- Returns:
- the uniform distribution
-
createLogNormal
Distribution createLogNormal(double mean, double std)
Creates a log-normal distribution- Parameters:
mean-std-- Returns:
-
createTruncatedNormal
Distribution createTruncatedNormal(double mean, double std)
Creates truncated normal distribution- Parameters:
mean-std-- Returns:
-
createOrthogonal
Distribution createOrthogonal(double gain)
Creates orthogonal distribution- Parameters:
gain-- Returns:
-
createConstant
Distribution createConstant(double value)
Creates constant distribution- Parameters:
value-- Returns:
-
-