public class org.apache.commons.math3.stat.inference.GTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.commons.math3.stat.inference.GTest
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/math3/stat/inference/GTest;
public double g(double[], long[]);
descriptor: ([D[J)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=15, args_size=3
start local 0 start local 1 start local 2 0: aload 1
arraylength
iconst_2
if_icmpge 2
1: new org.apache.commons.math3.exception.DimensionMismatchException
dup
aload 1
arraylength
iconst_2
invokespecial org.apache.commons.math3.exception.DimensionMismatchException.<init>:(II)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
arraylength
aload 2
arraylength
if_icmpeq 4
3: new org.apache.commons.math3.exception.DimensionMismatchException
dup
aload 1
arraylength
aload 2
arraylength
invokespecial org.apache.commons.math3.exception.DimensionMismatchException.<init>:(II)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
invokestatic org.apache.commons.math3.util.MathArrays.checkPositive:([D)V
5: aload 2
invokestatic org.apache.commons.math3.util.MathArrays.checkNonNegative:([J)V
6: dconst_0
dstore 3
start local 3 7: dconst_0
dstore 5
start local 5 8: iconst_0
istore 7
start local 7 9: goto 13
10: StackMap locals: double double int
StackMap stack:
dload 3
aload 1
iload 7
daload
dadd
dstore 3
11: dload 5
aload 2
iload 7
laload
l2d
dadd
dstore 5
12: iinc 7 1
StackMap locals:
StackMap stack:
13: iload 7
aload 2
arraylength
if_icmplt 10
end local 7 14: dconst_1
dstore 7
start local 7 15: iconst_0
istore 9
start local 9 16: dload 3
dload 5
dsub
invokestatic org.apache.commons.math3.util.FastMath.abs:(D)D
ldc 1.0E-5
dcmpl
ifle 19
17: dload 5
dload 3
ddiv
dstore 7
18: iconst_1
istore 9
19: StackMap locals: org.apache.commons.math3.stat.inference.GTest double[] long[] double double double int
StackMap stack:
dconst_0
dstore 10
start local 10 20: iconst_0
istore 12
start local 12 21: goto 28
22: StackMap locals: double int
StackMap stack:
iload 9
ifeq 24
23: aload 2
iload 12
laload
l2d
dload 7
aload 1
iload 12
daload
dmul
ddiv
invokestatic org.apache.commons.math3.util.FastMath.log:(D)D
goto 25
24: StackMap locals:
StackMap stack:
aload 2
iload 12
laload
l2d
aload 1
iload 12
daload
ddiv
invokestatic org.apache.commons.math3.util.FastMath.log:(D)D
25: StackMap locals:
StackMap stack: double
dstore 13
start local 13 26: dload 10
aload 2
iload 12
laload
l2d
dload 13
dmul
dadd
dstore 10
end local 13 27: iinc 12 1
StackMap locals:
StackMap stack:
28: iload 12
aload 2
arraylength
if_icmplt 22
end local 12 29: ldc 2.0
dload 10
dmul
dreturn
end local 10 end local 9 end local 7 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lorg/apache/commons/math3/stat/inference/GTest;
0 30 1 expected [D
0 30 2 observed [J
7 30 3 sumExpected D
8 30 5 sumObserved D
9 14 7 i I
15 30 7 ratio D
16 30 9 rescale Z
20 30 10 sum D
21 29 12 i I
26 27 13 dev D
Exceptions:
throws org.apache.commons.math3.exception.NotPositiveException, org.apache.commons.math3.exception.NotStrictlyPositiveException, org.apache.commons.math3.exception.DimensionMismatchException
MethodParameters:
Name Flags
expected final
observed final
public double gTest(double[], long[]);
descriptor: ([D[J)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new org.apache.commons.math3.distribution.ChiSquaredDistribution
dup
aconst_null
aload 1
arraylength
i2d
dconst_1
dsub
invokespecial org.apache.commons.math3.distribution.ChiSquaredDistribution.<init>:(Lorg/apache/commons/math3/random/RandomGenerator;D)V
1: astore 3
start local 3 2: dconst_1
aload 3
aload 0
aload 1
aload 2
invokevirtual org.apache.commons.math3.stat.inference.GTest.g:([D[J)D
invokevirtual org.apache.commons.math3.distribution.ChiSquaredDistribution.cumulativeProbability:(D)D
dsub
dreturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/math3/stat/inference/GTest;
0 3 1 expected [D
0 3 2 observed [J
2 3 3 distribution Lorg/apache/commons/math3/distribution/ChiSquaredDistribution;
Exceptions:
throws org.apache.commons.math3.exception.NotPositiveException, org.apache.commons.math3.exception.NotStrictlyPositiveException, org.apache.commons.math3.exception.DimensionMismatchException, org.apache.commons.math3.exception.MaxCountExceededException
MethodParameters:
Name Flags
expected final
observed final
public double gTestIntrinsic(double[], long[]);
descriptor: ([D[J)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new org.apache.commons.math3.distribution.ChiSquaredDistribution
dup
aconst_null
aload 1
arraylength
i2d
ldc 2.0
dsub
invokespecial org.apache.commons.math3.distribution.ChiSquaredDistribution.<init>:(Lorg/apache/commons/math3/random/RandomGenerator;D)V
1: astore 3
start local 3 2: dconst_1
aload 3
aload 0
aload 1
aload 2
invokevirtual org.apache.commons.math3.stat.inference.GTest.g:([D[J)D
invokevirtual org.apache.commons.math3.distribution.ChiSquaredDistribution.cumulativeProbability:(D)D
dsub
dreturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/math3/stat/inference/GTest;
0 3 1 expected [D
0 3 2 observed [J
2 3 3 distribution Lorg/apache/commons/math3/distribution/ChiSquaredDistribution;
Exceptions:
throws org.apache.commons.math3.exception.NotPositiveException, org.apache.commons.math3.exception.NotStrictlyPositiveException, org.apache.commons.math3.exception.DimensionMismatchException, org.apache.commons.math3.exception.MaxCountExceededException
MethodParameters:
Name Flags
expected final
observed final
public boolean gTest(double[], long[], double);
descriptor: ([D[JD)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: dload 3
dconst_0
dcmpg
ifle 1
dload 3
ldc 0.5
dcmpl
ifle 4
1: StackMap locals:
StackMap stack:
new org.apache.commons.math3.exception.OutOfRangeException
dup
getstatic org.apache.commons.math3.exception.util.LocalizedFormats.OUT_OF_BOUND_SIGNIFICANCE_LEVEL:Lorg/apache/commons/math3/exception/util/LocalizedFormats;
2: dload 3
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
ldc 0.5
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
3: invokespecial org.apache.commons.math3.exception.OutOfRangeException.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;Ljava/lang/Number;Ljava/lang/Number;Ljava/lang/Number;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.apache.commons.math3.stat.inference.GTest.gTest:([D[J)D
dload 3
dcmpg
ifge 5
iconst_1
ireturn
StackMap locals:
StackMap stack:
5: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/commons/math3/stat/inference/GTest;
0 6 1 expected [D
0 6 2 observed [J
0 6 3 alpha D
Exceptions:
throws org.apache.commons.math3.exception.NotPositiveException, org.apache.commons.math3.exception.NotStrictlyPositiveException, org.apache.commons.math3.exception.DimensionMismatchException, org.apache.commons.math3.exception.OutOfRangeException, org.apache.commons.math3.exception.MaxCountExceededException
MethodParameters:
Name Flags
expected final
observed final
alpha final
private double entropy(long[][]);
descriptor: ([[J)D
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=10, args_size=2
start local 0 start local 1 0: dconst_0
dstore 2
start local 2 1: dconst_0
dstore 4
start local 4 2: iconst_0
istore 6
start local 6 3: goto 10
4: StackMap locals: double double int
StackMap stack:
iconst_0
istore 7
start local 7 5: goto 8
6: StackMap locals: int
StackMap stack:
dload 4
aload 1
iload 6
aaload
iload 7
laload
l2d
dadd
dstore 4
7: iinc 7 1
StackMap locals:
StackMap stack:
8: iload 7
aload 1
iload 6
aaload
arraylength
if_icmplt 6
end local 7 9: iinc 6 1
StackMap locals:
StackMap stack:
10: iload 6
aload 1
arraylength
if_icmplt 4
end local 6 11: iconst_0
istore 6
start local 6 12: goto 21
13: StackMap locals:
StackMap stack:
iconst_0
istore 7
start local 7 14: goto 19
15: StackMap locals: int
StackMap stack:
aload 1
iload 6
aaload
iload 7
laload
lconst_0
lcmp
ifeq 18
16: aload 1
iload 6
aaload
iload 7
laload
l2d
dload 4
ddiv
dstore 8
start local 8 17: dload 2
dload 8
dload 8
invokestatic org.apache.commons.math3.util.FastMath.log:(D)D
dmul
dadd
dstore 2
end local 8 18: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
19: iload 7
aload 1
iload 6
aaload
arraylength
if_icmplt 15
end local 7 20: iinc 6 1
StackMap locals:
StackMap stack:
21: iload 6
aload 1
arraylength
if_icmplt 13
end local 6 22: dload 2
dneg
dreturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/apache/commons/math3/stat/inference/GTest;
0 23 1 k [[J
1 23 2 h D
2 23 4 sum_k D
3 11 6 i I
5 9 7 j I
12 22 6 i I
14 20 7 j I
17 18 8 p_ij D
MethodParameters:
Name Flags
k final
private double entropy(long[]);
descriptor: ([J)D
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: dconst_0
dstore 2
start local 2 1: dconst_0
dstore 4
start local 4 2: iconst_0
istore 6
start local 6 3: goto 6
4: StackMap locals: double double int
StackMap stack:
dload 4
aload 1
iload 6
laload
l2d
dadd
dstore 4
5: iinc 6 1
StackMap locals:
StackMap stack:
6: iload 6
aload 1
arraylength
if_icmplt 4
end local 6 7: iconst_0
istore 6
start local 6 8: goto 13
9: StackMap locals:
StackMap stack:
aload 1
iload 6
laload
lconst_0
lcmp
ifeq 12
10: aload 1
iload 6
laload
l2d
dload 4
ddiv
dstore 7
start local 7 11: dload 2
dload 7
dload 7
invokestatic org.apache.commons.math3.util.FastMath.log:(D)D
dmul
dadd
dstore 2
end local 7 12: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
13: iload 6
aload 1
arraylength
if_icmplt 9
end local 6 14: dload 2
dneg
dreturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/commons/math3/stat/inference/GTest;
0 15 1 k [J
1 15 2 h D
2 15 4 sum_k D
3 7 6 i I
8 14 6 i I
11 12 7 p_i D
MethodParameters:
Name Flags
k final
public double gDataSetsComparison(long[], long[]);
descriptor: ([J[J)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=12, args_size=3
start local 0 start local 1 start local 2 0: aload 1
arraylength
iconst_2
if_icmpge 2
1: new org.apache.commons.math3.exception.DimensionMismatchException
dup
aload 1
arraylength
iconst_2
invokespecial org.apache.commons.math3.exception.DimensionMismatchException.<init>:(II)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
arraylength
aload 2
arraylength
if_icmpeq 4
3: new org.apache.commons.math3.exception.DimensionMismatchException
dup
aload 1
arraylength
aload 2
arraylength
invokespecial org.apache.commons.math3.exception.DimensionMismatchException.<init>:(II)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
invokestatic org.apache.commons.math3.util.MathArrays.checkNonNegative:([J)V
5: aload 2
invokestatic org.apache.commons.math3.util.MathArrays.checkNonNegative:([J)V
6: lconst_0
lstore 3
start local 3 7: lconst_0
lstore 5
start local 5 8: aload 1
arraylength
newarray 11
astore 7
start local 7 9: iconst_2
aload 1
arraylength
multianewarray [[J 2
astore 8
start local 8 10: iconst_0
istore 9
start local 9 11: goto 20
12: StackMap locals: org.apache.commons.math3.stat.inference.GTest long[] long[] long long long[] long[][] int
StackMap stack:
aload 1
iload 9
laload
lconst_0
lcmp
ifne 14
aload 2
iload 9
laload
lconst_0
lcmp
ifne 14
13: new org.apache.commons.math3.exception.ZeroException
dup
getstatic org.apache.commons.math3.exception.util.LocalizedFormats.OBSERVED_COUNTS_BOTTH_ZERO_FOR_ENTRY:Lorg/apache/commons/math3/exception/util/LocalizedFormats;
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 9
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokespecial org.apache.commons.math3.exception.ZeroException.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;[Ljava/lang/Object;)V
athrow
14: StackMap locals:
StackMap stack:
lload 3
aload 1
iload 9
laload
ladd
lstore 3
15: lload 5
aload 2
iload 9
laload
ladd
lstore 5
16: aload 7
iload 9
aload 1
iload 9
laload
aload 2
iload 9
laload
ladd
lastore
17: aload 8
iconst_0
aaload
iload 9
aload 1
iload 9
laload
lastore
18: aload 8
iconst_1
aaload
iload 9
aload 2
iload 9
laload
lastore
19: iinc 9 1
StackMap locals:
StackMap stack:
20: iload 9
aload 1
arraylength
if_icmplt 12
end local 9 21: lload 3
lconst_0
lcmp
ifeq 22
lload 5
lconst_0
lcmp
ifne 23
22: StackMap locals:
StackMap stack:
new org.apache.commons.math3.exception.ZeroException
dup
invokespecial org.apache.commons.math3.exception.ZeroException.<init>:()V
athrow
23: StackMap locals:
StackMap stack:
iconst_2
newarray 11
dup
iconst_0
lload 3
lastore
dup
iconst_1
lload 5
lastore
astore 9
start local 9 24: lload 3
l2d
lload 5
l2d
dadd
dstore 10
start local 10 25: ldc 2.0
dload 10
dmul
aload 0
aload 9
invokevirtual org.apache.commons.math3.stat.inference.GTest.entropy:([J)D
aload 0
aload 7
invokevirtual org.apache.commons.math3.stat.inference.GTest.entropy:([J)D
dadd
aload 0
aload 8
invokevirtual org.apache.commons.math3.stat.inference.GTest.entropy:([[J)D
dsub
dmul
dreturn
end local 10 end local 9 end local 8 end local 7 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lorg/apache/commons/math3/stat/inference/GTest;
0 26 1 observed1 [J
0 26 2 observed2 [J
7 26 3 countSum1 J
8 26 5 countSum2 J
9 26 7 collSums [J
10 26 8 k [[J
11 21 9 i I
24 26 9 rowSums [J
25 26 10 sum D
Exceptions:
throws org.apache.commons.math3.exception.DimensionMismatchException, org.apache.commons.math3.exception.NotPositiveException, org.apache.commons.math3.exception.ZeroException
MethodParameters:
Name Flags
observed1 final
observed2 final
public double rootLogLikelihoodRatio(long, long, long, long);
descriptor: (JJJJ)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=13, args_size=5
start local 0 start local 1 start local 3 start local 5 start local 7 0: aload 0
1: iconst_2
newarray 11
dup
iconst_0
lload 1
lastore
dup
iconst_1
lload 3
lastore
iconst_2
newarray 11
dup
iconst_0
lload 5
lastore
dup
iconst_1
lload 7
lastore
2: invokevirtual org.apache.commons.math3.stat.inference.GTest.gDataSetsComparison:([J[J)D
dstore 9
start local 9 3: dload 9
invokestatic org.apache.commons.math3.util.FastMath.sqrt:(D)D
dstore 11
start local 11 4: lload 1
l2d
lload 1
lload 3
ladd
l2d
ddiv
lload 5
l2d
lload 5
lload 7
ladd
l2d
ddiv
dcmpg
ifge 6
5: dload 11
dneg
dstore 11
6: StackMap locals: double double
StackMap stack:
dload 11
dreturn
end local 11 end local 9 end local 7 end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/commons/math3/stat/inference/GTest;
0 7 1 k11 J
0 7 3 k12 J
0 7 5 k21 J
0 7 7 k22 J
3 7 9 llr D
4 7 11 sqrt D
MethodParameters:
Name Flags
k11 final
k12
k21 final
k22 final
public double gTestDataSetsComparison(long[], long[]);
descriptor: ([J[J)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new org.apache.commons.math3.distribution.ChiSquaredDistribution
dup
aconst_null
aload 1
arraylength
i2d
dconst_1
dsub
invokespecial org.apache.commons.math3.distribution.ChiSquaredDistribution.<init>:(Lorg/apache/commons/math3/random/RandomGenerator;D)V
1: astore 3
start local 3 2: dconst_1
aload 3
3: aload 0
aload 1
aload 2
invokevirtual org.apache.commons.math3.stat.inference.GTest.gDataSetsComparison:([J[J)D
4: invokevirtual org.apache.commons.math3.distribution.ChiSquaredDistribution.cumulativeProbability:(D)D
dsub
dreturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/math3/stat/inference/GTest;
0 5 1 observed1 [J
0 5 2 observed2 [J
2 5 3 distribution Lorg/apache/commons/math3/distribution/ChiSquaredDistribution;
Exceptions:
throws org.apache.commons.math3.exception.DimensionMismatchException, org.apache.commons.math3.exception.NotPositiveException, org.apache.commons.math3.exception.ZeroException, org.apache.commons.math3.exception.MaxCountExceededException
MethodParameters:
Name Flags
observed1 final
observed2 final
public boolean gTestDataSetsComparison(long[], long[], double);
descriptor: ([J[JD)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: dload 3
dconst_0
dcmpg
ifle 1
dload 3
ldc 0.5
dcmpl
ifle 4
1: StackMap locals:
StackMap stack:
new org.apache.commons.math3.exception.OutOfRangeException
dup
2: getstatic org.apache.commons.math3.exception.util.LocalizedFormats.OUT_OF_BOUND_SIGNIFICANCE_LEVEL:Lorg/apache/commons/math3/exception/util/LocalizedFormats;
dload 3
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
ldc 0.5
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
3: invokespecial org.apache.commons.math3.exception.OutOfRangeException.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;Ljava/lang/Number;Ljava/lang/Number;Ljava/lang/Number;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.apache.commons.math3.stat.inference.GTest.gTestDataSetsComparison:([J[J)D
dload 3
dcmpg
ifge 5
iconst_1
ireturn
StackMap locals:
StackMap stack:
5: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/commons/math3/stat/inference/GTest;
0 6 1 observed1 [J
0 6 2 observed2 [J
0 6 3 alpha D
Exceptions:
throws org.apache.commons.math3.exception.DimensionMismatchException, org.apache.commons.math3.exception.NotPositiveException, org.apache.commons.math3.exception.ZeroException, org.apache.commons.math3.exception.OutOfRangeException, org.apache.commons.math3.exception.MaxCountExceededException
MethodParameters:
Name Flags
observed1 final
observed2 final
alpha final
}
SourceFile: "GTest.java"