public class org.apache.commons.math.distribution.UniformIntegerDistribution extends org.apache.commons.math.distribution.AbstractIntegerDistribution
{
private static final long serialVersionUID;
private final int lower;
private final int upper;
public void <init>(int, int) throws org.apache.commons.math.exception.NumberIsTooLargeException
{
org.apache.commons.math.random.Well19937c v;
int v, v;
org.apache.commons.math.distribution.UniformIntegerDistribution v;
v := @this: org.apache.commons.math.distribution.UniformIntegerDistribution;
v := @parameter: int;
v := @parameter: int;
v = new org.apache.commons.math.random.Well19937c;
specialinvoke v.<org.apache.commons.math.random.Well19937c: void <init>()>();
specialinvoke v.<org.apache.commons.math.distribution.UniformIntegerDistribution: void <init>(org.apache.commons.math.random.RandomGenerator,int,int)>(v, v, v);
return;
}
public void <init>(org.apache.commons.math.random.RandomGenerator, int, int) throws org.apache.commons.math.exception.NumberIsTooLargeException
{
org.apache.commons.math.exception.util.LocalizedFormats v;
org.apache.commons.math.distribution.UniformIntegerDistribution v;
java.lang.Integer v, v;
org.apache.commons.math.exception.NumberIsTooLargeException v;
org.apache.commons.math.random.RandomGenerator v;
int v, v;
v := @this: org.apache.commons.math.distribution.UniformIntegerDistribution;
v := @parameter: org.apache.commons.math.random.RandomGenerator;
v := @parameter: int;
v := @parameter: int;
specialinvoke v.<org.apache.commons.math.distribution.AbstractIntegerDistribution: void <init>(org.apache.commons.math.random.RandomGenerator)>(v);
if v < v goto label;
v = new org.apache.commons.math.exception.NumberIsTooLargeException;
v = <org.apache.commons.math.exception.util.LocalizedFormats: org.apache.commons.math.exception.util.LocalizedFormats LOWER_BOUND_NOT_BELOW_UPPER_BOUND>;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
specialinvoke v.<org.apache.commons.math.exception.NumberIsTooLargeException: void <init>(org.apache.commons.math.exception.util.Localizable,java.lang.Number,java.lang.Number,boolean)>(v, v, v, 0);
throw v;
label:
v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int lower> = v;
v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int upper> = v;
return;
}
public double probability(int)
{
org.apache.commons.math.distribution.UniformIntegerDistribution v;
int v, v, v, v, v, v, v;
double v;
v := @this: org.apache.commons.math.distribution.UniformIntegerDistribution;
v := @parameter: int;
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int lower>;
if v < v goto label;
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int upper>;
if v <= v goto label;
label:
return 0.0;
label:
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int upper>;
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int lower>;
v = v - v;
v = v + 1;
v = 1.0 / v;
return v;
}
public double cumulativeProbability(int)
{
org.apache.commons.math.distribution.UniformIntegerDistribution v;
int v, v, v, v, v, v, v, v;
double v, v, v;
v := @this: org.apache.commons.math.distribution.UniformIntegerDistribution;
v := @parameter: int;
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int lower>;
if v >= v goto label;
return 0.0;
label:
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int upper>;
if v <= v goto label;
return 1.0;
label:
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int lower>;
v = v - v;
v = v + 1.0;
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int upper>;
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int lower>;
v = v - v;
v = v + 1.0;
v = v / v;
return v;
}
public double getNumericalMean()
{
int v, v, v;
org.apache.commons.math.distribution.UniformIntegerDistribution v;
double v;
v := @this: org.apache.commons.math.distribution.UniformIntegerDistribution;
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int lower>;
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int upper>;
v = v + v;
v = 0.5 * v;
return v;
}
public double getNumericalVariance()
{
org.apache.commons.math.distribution.UniformIntegerDistribution v;
int v, v, v, v;
double v, v, v;
v := @this: org.apache.commons.math.distribution.UniformIntegerDistribution;
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int upper>;
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int lower>;
v = v - v;
v = v + 1;
v = v * v;
v = v - 1.0;
v = v / 12.0;
return v;
}
public int getSupportLowerBound()
{
int v;
org.apache.commons.math.distribution.UniformIntegerDistribution v;
v := @this: org.apache.commons.math.distribution.UniformIntegerDistribution;
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int lower>;
return v;
}
public int getSupportUpperBound()
{
int v;
org.apache.commons.math.distribution.UniformIntegerDistribution v;
v := @this: org.apache.commons.math.distribution.UniformIntegerDistribution;
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int upper>;
return v;
}
public boolean isSupportConnected()
{
org.apache.commons.math.distribution.UniformIntegerDistribution v;
v := @this: org.apache.commons.math.distribution.UniformIntegerDistribution;
return 1;
}
public int sample()
{
org.apache.commons.math.distribution.UniformIntegerDistribution v;
org.apache.commons.math.random.RandomGenerator v;
int v, v;
double v, v, v, v, v, v, v;
v := @this: org.apache.commons.math.distribution.UniformIntegerDistribution;
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: org.apache.commons.math.random.RandomGenerator random>;
v = interfaceinvoke v.<org.apache.commons.math.random.RandomGenerator: double nextDouble()>();
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int upper>;
v = v * v;
v = 1.0 - v;
v = v.<org.apache.commons.math.distribution.UniformIntegerDistribution: int lower>;
v = v * v;
v = v + v;
v = v + v;
v = staticinvoke <org.apache.commons.math.util.FastMath: double floor(double)>(v);
return v;
}
}