Class FDistribution
java.lang.Object
eduni.distributions.Generator
eduni.distributions.FDistribution
- All Implemented Interfaces:
ContinuousGenerator,Seedable
A random number generator based on the F-distribution.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionFDistribution(long num_deg_freedom, long den_deg_freedom) the seed is automatically provided by theSeedGeneratorFDistribution(long num_deg_freedom, long den_deg_freedom, long seed) The constructor with which a specific seed is set for the random number generator -
Method Summary
-
Constructor Details
-
FDistribution
public FDistribution(long num_deg_freedom, long den_deg_freedom) the seed is automatically provided by theSeedGenerator- Parameters:
num_deg_freedom- The numerator degrees of freedom for the distributionden_deg_freedom- The denominator degrees of freedom for the distribution
-
FDistribution
public FDistribution(long num_deg_freedom, long den_deg_freedom, long seed) The constructor with which a specific seed is set for the random number generator- Parameters:
num_deg_freedom- The numerator degrees of freedom for the distributionden_deg_freedom- The denominator degrees of freedom for the distributionseed- The initial seed for the generator, two instances with the same seed will generate the same sequence of numbers
-
-
Method Details
-
sample
public double sample()Generate a new random number.- Specified by:
samplein interfaceContinuousGenerator- Returns:
- The next random number in the sequence
-