- java.lang.Object
-
- swim.math.Distribution
-
- Direct Known Subclasses:
UniformDistribution
public abstract class Distribution extends Object
-
-
Constructor Summary
Constructors Constructor Description Distribution()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract double
density(double x)
static Distribution
reluUniform(double fanIn, double fanOut)
static Distribution
reluUniform(Random random, double fanIn, double fanOut)
abstract double
sample()
MutableTensor
sample(TensorDims dims, Precision prec)
static Distribution
sigmoidUniform(double fanIn, double fanOut)
static Distribution
sigmoidUniform(Random random, double fanIn, double fanOut)
-
-
-
Method Detail
-
density
public abstract double density(double x)
-
sample
public abstract double sample()
-
sample
public MutableTensor sample(TensorDims dims, Precision prec)
-
sigmoidUniform
public static Distribution sigmoidUniform(Random random, double fanIn, double fanOut)
-
sigmoidUniform
public static Distribution sigmoidUniform(double fanIn, double fanOut)
-
reluUniform
public static Distribution reluUniform(Random random, double fanIn, double fanOut)
-
reluUniform
public static Distribution reluUniform(double fanIn, double fanOut)
-
-