public class org.apache.commons.math3.stat.interval.AgrestiCoullInterval implements org.apache.commons.math3.stat.interval.BinomialConfidenceInterval
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.commons.math3.stat.interval.AgrestiCoullInterval
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 // org.apache.commons.math3.stat.interval.AgrestiCoullInterval this
0: .line 30
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // org.apache.commons.math3.stat.interval.AgrestiCoullInterval this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/math3/stat/interval/AgrestiCoullInterval;
public org.apache.commons.math3.stat.interval.ConfidenceInterval createInterval(int, int, double);
descriptor: (IID)Lorg/apache/commons/math3/stat/interval/ConfidenceInterval;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=18, args_size=4
start local 0 // org.apache.commons.math3.stat.interval.AgrestiCoullInterval this
start local 1 // int numberOfTrials
start local 2 // int numberOfSuccesses
start local 3 // double confidenceLevel
0: .line 34
iload 1 /* numberOfTrials */
iload 2 /* numberOfSuccesses */
dload 3 /* confidenceLevel */
invokestatic org.apache.commons.math3.stat.interval.IntervalUtils.checkParameters:(IID)V
1: .line 35
dconst_1
dload 3 /* confidenceLevel */
dsub
ldc 2.0
ddiv
dstore 5 /* alpha */
start local 5 // double alpha
2: .line 36
new org.apache.commons.math3.distribution.NormalDistribution
dup
invokespecial org.apache.commons.math3.distribution.NormalDistribution.<init>:()V
astore 7 /* normalDistribution */
start local 7 // org.apache.commons.math3.distribution.NormalDistribution normalDistribution
3: .line 37
aload 7 /* normalDistribution */
dconst_1
dload 5 /* alpha */
dsub
invokevirtual org.apache.commons.math3.distribution.NormalDistribution.inverseCumulativeProbability:(D)D
dstore 8 /* z */
start local 8 // double z
4: .line 38
dload 8 /* z */
iconst_2
invokestatic org.apache.commons.math3.util.FastMath.pow:(DI)D
dstore 10 /* zSquared */
start local 10 // double zSquared
5: .line 39
iload 1 /* numberOfTrials */
i2d
dload 10 /* zSquared */
dadd
dstore 12 /* modifiedNumberOfTrials */
start local 12 // double modifiedNumberOfTrials
6: .line 40
dconst_1
dload 12 /* modifiedNumberOfTrials */
ddiv
iload 2 /* numberOfSuccesses */
i2d
ldc 0.5
dload 10 /* zSquared */
dmul
dadd
dmul
dstore 14 /* modifiedSuccessesRatio */
start local 14 // double modifiedSuccessesRatio
7: .line 41
dload 8 /* z */
8: .line 42
dconst_1
dload 12 /* modifiedNumberOfTrials */
ddiv
dload 14 /* modifiedSuccessesRatio */
dmul
9: .line 43
dconst_1
dload 14 /* modifiedSuccessesRatio */
dsub
10: .line 42
dmul
invokestatic org.apache.commons.math3.util.FastMath.sqrt:(D)D
11: .line 41
dmul
dstore 16 /* difference */
start local 16 // double difference
12: .line 44
new org.apache.commons.math3.stat.interval.ConfidenceInterval
dup
dload 14 /* modifiedSuccessesRatio */
dload 16 /* difference */
dsub
dload 14 /* modifiedSuccessesRatio */
dload 16 /* difference */
dadd
13: .line 45
dload 3 /* confidenceLevel */
14: .line 44
invokespecial org.apache.commons.math3.stat.interval.ConfidenceInterval.<init>:(DDD)V
areturn
end local 16 // double difference
end local 14 // double modifiedSuccessesRatio
end local 12 // double modifiedNumberOfTrials
end local 10 // double zSquared
end local 8 // double z
end local 7 // org.apache.commons.math3.distribution.NormalDistribution normalDistribution
end local 5 // double alpha
end local 3 // double confidenceLevel
end local 2 // int numberOfSuccesses
end local 1 // int numberOfTrials
end local 0 // org.apache.commons.math3.stat.interval.AgrestiCoullInterval this
LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/commons/math3/stat/interval/AgrestiCoullInterval;
0 15 1 numberOfTrials I
0 15 2 numberOfSuccesses I
0 15 3 confidenceLevel D
2 15 5 alpha D
3 15 7 normalDistribution Lorg/apache/commons/math3/distribution/NormalDistribution;
4 15 8 z D
5 15 10 zSquared D
6 15 12 modifiedNumberOfTrials D
7 15 14 modifiedSuccessesRatio D
12 15 16 difference D
MethodParameters:
Name Flags
numberOfTrials
numberOfSuccesses
confidenceLevel
}
SourceFile: "AgrestiCoullInterval.java"