- java.lang.Object
-
- swim.math.Distribution
-
- swim.math.UniformDistribution
-
public class UniformDistribution extends Distribution
-
-
Constructor Summary
Constructors Constructor Description UniformDistribution(double lower, double upper)
UniformDistribution(Random random, double lower, double upper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
density(double x)
double
sample()
-
Methods inherited from class swim.math.Distribution
reluUniform, reluUniform, sample, sigmoidUniform, sigmoidUniform
-
-
-
-
Constructor Detail
-
UniformDistribution
public UniformDistribution(Random random, double lower, double upper)
-
UniformDistribution
public UniformDistribution(double lower, double upper)
-
-
Method Detail
-
density
public double density(double x)
- Specified by:
density
in classDistribution
-
sample
public double sample()
- Specified by:
sample
in classDistribution
-
-