java.lang.Object
swim.math.Distribution
swim.math.UniformDistribution
-
Constructor Summary
ConstructorsConstructorDescriptionUniformDistribution
(double lower, double upper) UniformDistribution
(Random random, double lower, double upper) -
Method Summary
Methods inherited from class swim.math.Distribution
reluUniform, reluUniform, sample, sigmoidUniform, sigmoidUniform
-
Constructor Details
-
UniformDistribution
-
UniformDistribution
public UniformDistribution(double lower, double upper)
-
-
Method Details
-
density
public double density(double x) - Specified by:
density
in classDistribution
-
sample
public double sample()- Specified by:
sample
in classDistribution
-