public class org.apache.commons.math3.distribution.ZipfDistribution extends org.apache.commons.math3.distribution.AbstractIntegerDistribution
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.commons.math3.distribution.ZipfDistribution
super_class: org.apache.commons.math3.distribution.AbstractIntegerDistribution
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -140627372283420404
private final int numberOfElements;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final double exponent;
descriptor: D
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private double numericalMean;
descriptor: D
flags: (0x0002) ACC_PRIVATE
private boolean numericalMeanIsCalculated;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private double numericalVariance;
descriptor: D
flags: (0x0002) ACC_PRIVATE
private boolean numericalVarianceIsCalculated;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private transient org.apache.commons.math3.distribution.ZipfDistribution$ZipfRejectionInversionSampler sampler;
descriptor: Lorg/apache/commons/math3/distribution/ZipfDistribution$ZipfRejectionInversionSampler;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
public void <init>(int, double);
descriptor: (ID)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new org.apache.commons.math3.random.Well19937c
dup
invokespecial org.apache.commons.math3.random.Well19937c.<init>:()V
iload 1
dload 2
invokespecial org.apache.commons.math3.distribution.ZipfDistribution.<init>:(Lorg/apache/commons/math3/random/RandomGenerator;ID)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/math3/distribution/ZipfDistribution;
0 2 1 numberOfElements I
0 2 2 exponent D
MethodParameters:
Name Flags
numberOfElements final
exponent final
public void <init>(org.apache.commons.math3.random.RandomGenerator, int, double);
descriptor: (Lorg/apache/commons/math3/random/RandomGenerator;ID)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokespecial org.apache.commons.math3.distribution.AbstractIntegerDistribution.<init>:(Lorg/apache/commons/math3/random/RandomGenerator;)V
1: aload 0
ldc NaN
putfield org.apache.commons.math3.distribution.ZipfDistribution.numericalMean:D
2: aload 0
iconst_0
putfield org.apache.commons.math3.distribution.ZipfDistribution.numericalMeanIsCalculated:Z
3: aload 0
ldc NaN
putfield org.apache.commons.math3.distribution.ZipfDistribution.numericalVariance:D
4: aload 0
iconst_0
putfield org.apache.commons.math3.distribution.ZipfDistribution.numericalVarianceIsCalculated:Z
5: iload 2
ifgt 9
6: new org.apache.commons.math3.exception.NotStrictlyPositiveException
dup
getstatic org.apache.commons.math3.exception.util.LocalizedFormats.DIMENSION:Lorg/apache/commons/math3/exception/util/LocalizedFormats;
7: iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
8: invokespecial org.apache.commons.math3.exception.NotStrictlyPositiveException.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;Ljava/lang/Number;)V
athrow
9: StackMap locals: org.apache.commons.math3.distribution.ZipfDistribution org.apache.commons.math3.random.RandomGenerator int double
StackMap stack:
dload 3
dconst_0
dcmpg
ifgt 13
10: new org.apache.commons.math3.exception.NotStrictlyPositiveException
dup
getstatic org.apache.commons.math3.exception.util.LocalizedFormats.EXPONENT:Lorg/apache/commons/math3/exception/util/LocalizedFormats;
11: dload 3
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
12: invokespecial org.apache.commons.math3.exception.NotStrictlyPositiveException.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;Ljava/lang/Number;)V
athrow
13: StackMap locals:
StackMap stack:
aload 0
iload 2
putfield org.apache.commons.math3.distribution.ZipfDistribution.numberOfElements:I
14: aload 0
dload 3
putfield org.apache.commons.math3.distribution.ZipfDistribution.exponent:D
15: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/commons/math3/distribution/ZipfDistribution;
0 16 1 rng Lorg/apache/commons/math3/random/RandomGenerator;
0 16 2 numberOfElements I
0 16 3 exponent D
Exceptions:
throws org.apache.commons.math3.exception.NotStrictlyPositiveException
MethodParameters:
Name Flags
rng
numberOfElements
exponent
public int getNumberOfElements();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.numberOfElements:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/math3/distribution/ZipfDistribution;
public double getExponent();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.exponent:D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/math3/distribution/ZipfDistribution;
public double probability(int);
descriptor: (I)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifle 1
iload 1
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.numberOfElements:I
if_icmple 2
1: StackMap locals:
StackMap stack:
dconst_0
dreturn
2: StackMap locals:
StackMap stack:
dconst_1
iload 1
i2d
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.exponent:D
invokestatic org.apache.commons.math3.util.FastMath.pow:(DD)D
ddiv
aload 0
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.numberOfElements:I
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.exponent:D
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution.generalizedHarmonic:(ID)D
ddiv
dreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/math3/distribution/ZipfDistribution;
0 3 1 x I
MethodParameters:
Name Flags
x final
public double logProbability(int);
descriptor: (I)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifle 1
iload 1
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.numberOfElements:I
if_icmple 2
1: StackMap locals:
StackMap stack:
ldc -Infinity
dreturn
2: StackMap locals:
StackMap stack:
iload 1
i2d
invokestatic org.apache.commons.math3.util.FastMath.log:(D)D
dneg
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.exponent:D
dmul
aload 0
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.numberOfElements:I
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.exponent:D
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution.generalizedHarmonic:(ID)D
invokestatic org.apache.commons.math3.util.FastMath.log:(D)D
dsub
dreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/math3/distribution/ZipfDistribution;
0 3 1 x I
MethodParameters:
Name Flags
x
public double cumulativeProbability(int);
descriptor: (I)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifgt 2
1: dconst_0
dreturn
2: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.numberOfElements:I
if_icmplt 4
3: dconst_1
dreturn
4: StackMap locals:
StackMap stack:
aload 0
iload 1
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.exponent:D
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution.generalizedHarmonic:(ID)D
aload 0
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.numberOfElements:I
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.exponent:D
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution.generalizedHarmonic:(ID)D
ddiv
dreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/math3/distribution/ZipfDistribution;
0 5 1 x I
MethodParameters:
Name Flags
x final
public double getNumericalMean();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.numericalMeanIsCalculated:Z
ifne 3
1: aload 0
aload 0
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution.calculateNumericalMean:()D
putfield org.apache.commons.math3.distribution.ZipfDistribution.numericalMean:D
2: aload 0
iconst_1
putfield org.apache.commons.math3.distribution.ZipfDistribution.numericalMeanIsCalculated:Z
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.numericalMean:D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/commons/math3/distribution/ZipfDistribution;
protected double calculateNumericalMean();
descriptor: ()D
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=8, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution.getNumberOfElements:()I
istore 1
start local 1 1: aload 0
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution.getExponent:()D
dstore 2
start local 2 2: aload 0
iload 1
dload 2
dconst_1
dsub
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution.generalizedHarmonic:(ID)D
dstore 4
start local 4 3: aload 0
iload 1
dload 2
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution.generalizedHarmonic:(ID)D
dstore 6
start local 6 4: dload 4
dload 6
ddiv
dreturn
end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/math3/distribution/ZipfDistribution;
1 5 1 N I
2 5 2 s D
3 5 4 Hs1 D
4 5 6 Hs D
public double getNumericalVariance();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.numericalVarianceIsCalculated:Z
ifne 3
1: aload 0
aload 0
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution.calculateNumericalVariance:()D
putfield org.apache.commons.math3.distribution.ZipfDistribution.numericalVariance:D
2: aload 0
iconst_1
putfield org.apache.commons.math3.distribution.ZipfDistribution.numericalVarianceIsCalculated:Z
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.numericalVariance:D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/commons/math3/distribution/ZipfDistribution;
protected double calculateNumericalVariance();
descriptor: ()D
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=10, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution.getNumberOfElements:()I
istore 1
start local 1 1: aload 0
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution.getExponent:()D
dstore 2
start local 2 2: aload 0
iload 1
dload 2
ldc 2.0
dsub
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution.generalizedHarmonic:(ID)D
dstore 4
start local 4 3: aload 0
iload 1
dload 2
dconst_1
dsub
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution.generalizedHarmonic:(ID)D
dstore 6
start local 6 4: aload 0
iload 1
dload 2
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution.generalizedHarmonic:(ID)D
dstore 8
start local 8 5: dload 4
dload 8
ddiv
dload 6
dload 6
dmul
dload 8
dload 8
dmul
ddiv
dsub
dreturn
end local 8 end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/commons/math3/distribution/ZipfDistribution;
1 6 1 N I
2 6 2 s D
3 6 4 Hs2 D
4 6 6 Hs1 D
5 6 8 Hs D
private double generalizedHarmonic(int, double);
descriptor: (ID)D
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=7, args_size=3
start local 0 start local 1 start local 2 0: dconst_0
dstore 4
start local 4 1: iload 1
istore 6
start local 6 2: goto 5
3: StackMap locals: double int
StackMap stack:
dload 4
dconst_1
iload 6
i2d
dload 2
invokestatic org.apache.commons.math3.util.FastMath.pow:(DD)D
ddiv
dadd
dstore 4
4: iinc 6 -1
StackMap locals:
StackMap stack:
5: iload 6
ifgt 3
end local 6 6: dload 4
dreturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/commons/math3/distribution/ZipfDistribution;
0 7 1 n I
0 7 2 m D
1 7 4 value D
2 6 6 k I
MethodParameters:
Name Flags
n final
m final
public int getSupportLowerBound();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/math3/distribution/ZipfDistribution;
public int getSupportUpperBound();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution.getNumberOfElements:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/math3/distribution/ZipfDistribution;
public boolean isSupportConnected();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/math3/distribution/ZipfDistribution;
public int sample();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.sampler:Lorg/apache/commons/math3/distribution/ZipfDistribution$ZipfRejectionInversionSampler;
ifnonnull 2
1: aload 0
new org.apache.commons.math3.distribution.ZipfDistribution$ZipfRejectionInversionSampler
dup
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.numberOfElements:I
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.exponent:D
invokespecial org.apache.commons.math3.distribution.ZipfDistribution$ZipfRejectionInversionSampler.<init>:(ID)V
putfield org.apache.commons.math3.distribution.ZipfDistribution.sampler:Lorg/apache/commons/math3/distribution/ZipfDistribution$ZipfRejectionInversionSampler;
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.sampler:Lorg/apache/commons/math3/distribution/ZipfDistribution$ZipfRejectionInversionSampler;
aload 0
getfield org.apache.commons.math3.distribution.ZipfDistribution.random:Lorg/apache/commons/math3/random/RandomGenerator;
invokevirtual org.apache.commons.math3.distribution.ZipfDistribution$ZipfRejectionInversionSampler.sample:(Lorg/apache/commons/math3/random/RandomGenerator;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/math3/distribution/ZipfDistribution;
}
SourceFile: "ZipfDistribution.java"
NestMembers:
org.apache.commons.math3.distribution.ZipfDistribution$ZipfRejectionInversionSampler
InnerClasses:
final ZipfRejectionInversionSampler = org.apache.commons.math3.distribution.ZipfDistribution$ZipfRejectionInversionSampler of org.apache.commons.math3.distribution.ZipfDistribution