public abstract class org.apache.commons.math3.distribution.AbstractIntegerDistribution implements org.apache.commons.math3.distribution.IntegerDistribution, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.apache.commons.math3.distribution.AbstractIntegerDistribution
super_class: java.lang.Object
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1146319659338487221
protected final org.apache.commons.math3.random.RandomDataImpl randomData;
descriptor: Lorg/apache/commons/math3/random/RandomDataImpl;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
RuntimeVisibleAnnotations:
java.lang.Deprecated()
protected final org.apache.commons.math3.random.RandomGenerator random;
descriptor: Lorg/apache/commons/math3/random/RandomGenerator;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new org.apache.commons.math3.random.RandomDataImpl
dup
invokespecial org.apache.commons.math3.random.RandomDataImpl.<init>:()V
putfield org.apache.commons.math3.distribution.AbstractIntegerDistribution.randomData:Lorg/apache/commons/math3/random/RandomDataImpl;
3: aload 0
aconst_null
putfield org.apache.commons.math3.distribution.AbstractIntegerDistribution.random:Lorg/apache/commons/math3/random/RandomGenerator;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/math3/distribution/AbstractIntegerDistribution;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
protected void <init>(org.apache.commons.math3.random.RandomGenerator);
descriptor: (Lorg/apache/commons/math3/random/RandomGenerator;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new org.apache.commons.math3.random.RandomDataImpl
dup
invokespecial org.apache.commons.math3.random.RandomDataImpl.<init>:()V
putfield org.apache.commons.math3.distribution.AbstractIntegerDistribution.randomData:Lorg/apache/commons/math3/random/RandomDataImpl;
3: aload 0
aload 1
putfield org.apache.commons.math3.distribution.AbstractIntegerDistribution.random:Lorg/apache/commons/math3/random/RandomGenerator;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/math3/distribution/AbstractIntegerDistribution;
0 5 1 rng Lorg/apache/commons/math3/random/RandomGenerator;
MethodParameters:
Name Flags
rng
public double cumulativeProbability(int, int);
descriptor: (II)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 2
iload 1
if_icmpge 4
1: new org.apache.commons.math3.exception.NumberIsTooLargeException
dup
getstatic org.apache.commons.math3.exception.util.LocalizedFormats.LOWER_ENDPOINT_ABOVE_UPPER_ENDPOINT:Lorg/apache/commons/math3/exception/util/LocalizedFormats;
2: iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
iconst_1
3: invokespecial org.apache.commons.math3.exception.NumberIsTooLargeException.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;Ljava/lang/Number;Ljava/lang/Number;Z)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
iload 2
invokevirtual org.apache.commons.math3.distribution.AbstractIntegerDistribution.cumulativeProbability:(I)D
aload 0
iload 1
invokevirtual org.apache.commons.math3.distribution.AbstractIntegerDistribution.cumulativeProbability:(I)D
dsub
dreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/math3/distribution/AbstractIntegerDistribution;
0 5 1 x0 I
0 5 2 x1 I
Exceptions:
throws org.apache.commons.math3.exception.NumberIsTooLargeException
MethodParameters:
Name Flags
x0
x1
public int inverseCumulativeProbability(double);
descriptor: (D)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=14, args_size=2
start local 0 start local 1 0: dload 1
dconst_0
dcmpg
iflt 1
dload 1
dconst_1
dcmpl
ifle 2
1: StackMap locals:
StackMap stack:
new org.apache.commons.math3.exception.OutOfRangeException
dup
dload 1
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokespecial org.apache.commons.math3.exception.OutOfRangeException.<init>:(Ljava/lang/Number;Ljava/lang/Number;Ljava/lang/Number;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.commons.math3.distribution.AbstractIntegerDistribution.getSupportLowerBound:()I
istore 3
start local 3 3: dload 1
dconst_0
dcmpl
ifne 5
4: iload 3
ireturn
5: StackMap locals: int
StackMap stack:
iload 3
ldc -2147483648
if_icmpne 8
6: aload 0
iload 3
invokevirtual org.apache.commons.math3.distribution.AbstractIntegerDistribution.checkedCumulativeProbability:(I)D
dload 1
dcmpl
iflt 9
7: iload 3
ireturn
8: StackMap locals:
StackMap stack:
iinc 3 -1
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.commons.math3.distribution.AbstractIntegerDistribution.getSupportUpperBound:()I
istore 4
start local 4 10: dload 1
dconst_1
dcmpl
ifne 12
11: iload 4
ireturn
12: StackMap locals: int
StackMap stack:
aload 0
invokevirtual org.apache.commons.math3.distribution.AbstractIntegerDistribution.getNumericalMean:()D
dstore 5
start local 5 13: aload 0
invokevirtual org.apache.commons.math3.distribution.AbstractIntegerDistribution.getNumericalVariance:()D
invokestatic org.apache.commons.math3.util.FastMath.sqrt:(D)D
dstore 7
start local 7 14: dload 5
invokestatic java.lang.Double.isInfinite:(D)Z
ifne 16
dload 5
invokestatic java.lang.Double.isNaN:(D)Z
ifne 16
15: dload 7
invokestatic java.lang.Double.isInfinite:(D)Z
ifne 16
dload 7
invokestatic java.lang.Double.isNaN:(D)Z
ifne 16
dload 7
dconst_0
dcmpl
ifne 17
16: StackMap locals: double double
StackMap stack:
iconst_0
goto 18
StackMap locals:
StackMap stack:
17: iconst_1
StackMap locals:
StackMap stack: int
18: istore 9
start local 9 19: iload 9
ifeq 28
20: dconst_1
dload 1
dsub
dload 1
ddiv
invokestatic org.apache.commons.math3.util.FastMath.sqrt:(D)D
dstore 10
start local 10 21: dload 5
dload 10
dload 7
dmul
dsub
dstore 12
start local 12 22: dload 12
iload 3
i2d
dcmpl
ifle 24
23: dload 12
invokestatic org.apache.commons.math3.util.FastMath.ceil:(D)D
d2i
iconst_1
isub
istore 3
24: StackMap locals: int double double
StackMap stack:
dconst_1
dload 10
ddiv
dstore 10
25: dload 5
dload 10
dload 7
dmul
dadd
dstore 12
26: dload 12
iload 4
i2d
dcmpg
ifge 28
27: dload 12
invokestatic org.apache.commons.math3.util.FastMath.ceil:(D)D
d2i
iconst_1
isub
istore 4
end local 12 end local 10 28: StackMap locals:
StackMap stack:
aload 0
dload 1
iload 3
iload 4
invokevirtual org.apache.commons.math3.distribution.AbstractIntegerDistribution.solveInverseCumulativeProbability:(DII)I
ireturn
end local 9 end local 7 end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lorg/apache/commons/math3/distribution/AbstractIntegerDistribution;
0 29 1 p D
3 29 3 lower I
10 29 4 upper I
13 29 5 mu D
14 29 7 sigma D
19 29 9 chebyshevApplies Z
21 28 10 k D
22 28 12 tmp D
Exceptions:
throws org.apache.commons.math3.exception.OutOfRangeException
MethodParameters:
Name Flags
p final
protected int solveInverseCumulativeProbability(double, int, int);
descriptor: (DII)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 3 start local 4 0: goto 9
1: StackMap locals:
StackMap stack:
iload 3
iload 4
iadd
iconst_2
idiv
istore 5
start local 5 2: iload 5
iload 3
if_icmplt 3
iload 5
iload 4
if_icmple 4
3: StackMap locals: int
StackMap stack:
iload 3
iload 4
iload 3
isub
iconst_2
idiv
iadd
istore 5
4: StackMap locals:
StackMap stack:
aload 0
iload 5
invokevirtual org.apache.commons.math3.distribution.AbstractIntegerDistribution.checkedCumulativeProbability:(I)D
dstore 6
start local 6 5: dload 6
dload 1
dcmpl
iflt 8
6: iload 5
istore 4
7: goto 9
8: StackMap locals: double
StackMap stack:
iload 5
istore 3
end local 6 end local 5 9: StackMap locals:
StackMap stack:
iload 3
iconst_1
iadd
iload 4
if_icmplt 1
10: iload 4
ireturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/commons/math3/distribution/AbstractIntegerDistribution;
0 11 1 p D
0 11 3 lower I
0 11 4 upper I
2 9 5 xm I
5 9 6 pm D
MethodParameters:
Name Flags
p final
lower
upper
public void reseedRandomGenerator(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.commons.math3.distribution.AbstractIntegerDistribution.random:Lorg/apache/commons/math3/random/RandomGenerator;
lload 1
invokeinterface org.apache.commons.math3.random.RandomGenerator.setSeed:(J)V
1: aload 0
getfield org.apache.commons.math3.distribution.AbstractIntegerDistribution.randomData:Lorg/apache/commons/math3/random/RandomDataImpl;
lload 1
invokevirtual org.apache.commons.math3.random.RandomDataImpl.reSeed:(J)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/math3/distribution/AbstractIntegerDistribution;
0 3 1 seed J
MethodParameters:
Name Flags
seed
public int sample();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.apache.commons.math3.distribution.AbstractIntegerDistribution.random:Lorg/apache/commons/math3/random/RandomGenerator;
invokeinterface org.apache.commons.math3.random.RandomGenerator.nextDouble:()D
invokevirtual org.apache.commons.math3.distribution.AbstractIntegerDistribution.inverseCumulativeProbability:(D)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/math3/distribution/AbstractIntegerDistribution;
public int[] sample(int);
descriptor: (I)[I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: iload 1
ifgt 4
1: new org.apache.commons.math3.exception.NotStrictlyPositiveException
dup
2: getstatic org.apache.commons.math3.exception.util.LocalizedFormats.NUMBER_OF_SAMPLES:Lorg/apache/commons/math3/exception/util/LocalizedFormats;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
3: invokespecial org.apache.commons.math3.exception.NotStrictlyPositiveException.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;Ljava/lang/Number;)V
athrow
4: StackMap locals:
StackMap stack:
iload 1
newarray 10
astore 2
start local 2 5: iconst_0
istore 3
start local 3 6: goto 9
7: StackMap locals: int[] int
StackMap stack:
aload 2
iload 3
aload 0
invokevirtual org.apache.commons.math3.distribution.AbstractIntegerDistribution.sample:()I
iastore
8: iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
iload 1
if_icmplt 7
end local 3 10: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/commons/math3/distribution/AbstractIntegerDistribution;
0 11 1 sampleSize I
5 11 2 out [I
6 10 3 i I
MethodParameters:
Name Flags
sampleSize
private double checkedCumulativeProbability(int);
descriptor: (I)D
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: ldc NaN
dstore 2
start local 2 1: aload 0
iload 1
invokevirtual org.apache.commons.math3.distribution.AbstractIntegerDistribution.cumulativeProbability:(I)D
dstore 2
2: dload 2
invokestatic java.lang.Double.isNaN:(D)Z
ifeq 6
3: new org.apache.commons.math3.exception.MathInternalError
dup
4: getstatic org.apache.commons.math3.exception.util.LocalizedFormats.DISCRETE_CUMULATIVE_PROBABILITY_RETURNED_NAN:Lorg/apache/commons/math3/exception/util/LocalizedFormats;
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
5: aastore
invokespecial org.apache.commons.math3.exception.MathInternalError.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;[Ljava/lang/Object;)V
athrow
6: StackMap locals: double
StackMap stack:
dload 2
dreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/commons/math3/distribution/AbstractIntegerDistribution;
0 7 1 argument I
1 7 2 result D
Exceptions:
throws org.apache.commons.math3.exception.MathInternalError
MethodParameters:
Name Flags
argument
public double logProbability(int);
descriptor: (I)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual org.apache.commons.math3.distribution.AbstractIntegerDistribution.probability:(I)D
invokestatic org.apache.commons.math3.util.FastMath.log:(D)D
dreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/math3/distribution/AbstractIntegerDistribution;
0 1 1 x I
MethodParameters:
Name Flags
x
}
SourceFile: "AbstractIntegerDistribution.java"