public final class com.google.common.math.StatsAccumulator
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.math.StatsAccumulator
super_class: java.lang.Object
{
private long count;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private double mean;
descriptor: D
flags: (0x0002) ACC_PRIVATE
private double sumOfSquaresOfDeltas;
descriptor: D
flags: (0x0002) ACC_PRIVATE
private double min;
descriptor: D
flags: (0x0002) ACC_PRIVATE
private double max;
descriptor: D
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
lconst_0
putfield com.google.common.math.StatsAccumulator.count:J
2: aload 0
dconst_0
putfield com.google.common.math.StatsAccumulator.mean:D
3: aload 0
dconst_0
putfield com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:D
4: aload 0
ldc NaN
putfield com.google.common.math.StatsAccumulator.min:D
5: aload 0
ldc NaN
putfield com.google.common.math.StatsAccumulator.max:D
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/common/math/StatsAccumulator;
public void add(double);
descriptor: (D)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.math.StatsAccumulator.count:J
lconst_0
lcmp
ifne 8
1: aload 0
lconst_1
putfield com.google.common.math.StatsAccumulator.count:J
2: aload 0
dload 1
putfield com.google.common.math.StatsAccumulator.mean:D
3: aload 0
dload 1
putfield com.google.common.math.StatsAccumulator.min:D
4: aload 0
dload 1
putfield com.google.common.math.StatsAccumulator.max:D
5: dload 1
invokestatic com.google.common.primitives.Doubles.isFinite:(D)Z
ifne 18
6: aload 0
ldc NaN
putfield com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:D
7: goto 18
8: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.google.common.math.StatsAccumulator.count:J
lconst_1
ladd
putfield com.google.common.math.StatsAccumulator.count:J
9: dload 1
invokestatic com.google.common.primitives.Doubles.isFinite:(D)Z
ifeq 14
aload 0
getfield com.google.common.math.StatsAccumulator.mean:D
invokestatic com.google.common.primitives.Doubles.isFinite:(D)Z
ifeq 14
10: dload 1
aload 0
getfield com.google.common.math.StatsAccumulator.mean:D
dsub
dstore 3
start local 3 11: aload 0
dup
getfield com.google.common.math.StatsAccumulator.mean:D
dload 3
aload 0
getfield com.google.common.math.StatsAccumulator.count:J
l2d
ddiv
dadd
putfield com.google.common.math.StatsAccumulator.mean:D
12: aload 0
dup
getfield com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:D
dload 3
dload 1
aload 0
getfield com.google.common.math.StatsAccumulator.mean:D
dsub
dmul
dadd
putfield com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:D
end local 3 13: goto 16
14: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.google.common.math.StatsAccumulator.mean:D
dload 1
invokestatic com.google.common.math.StatsAccumulator.calculateNewMeanNonFinite:(DD)D
putfield com.google.common.math.StatsAccumulator.mean:D
15: aload 0
ldc NaN
putfield com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:D
16: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.google.common.math.StatsAccumulator.min:D
dload 1
invokestatic java.lang.Math.min:(DD)D
putfield com.google.common.math.StatsAccumulator.min:D
17: aload 0
aload 0
getfield com.google.common.math.StatsAccumulator.max:D
dload 1
invokestatic java.lang.Math.max:(DD)D
putfield com.google.common.math.StatsAccumulator.max:D
18: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/google/common/math/StatsAccumulator;
0 19 1 value D
11 13 3 delta D
MethodParameters:
Name Flags
value
public void addAll(java.lang.Iterable<? extends java.lang.Number>);
descriptor: (Ljava/lang/Iterable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 3
goto 3
StackMap locals: com.google.common.math.StatsAccumulator java.lang.Iterable top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Number
astore 2
start local 2 2: aload 0
aload 2
invokevirtual java.lang.Number.doubleValue:()D
invokevirtual com.google.common.math.StatsAccumulator.add:(D)V
end local 2 3: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/math/StatsAccumulator;
0 5 1 values Ljava/lang/Iterable<+Ljava/lang/Number;>;
2 3 2 value Ljava/lang/Number;
Signature: (Ljava/lang/Iterable<+Ljava/lang/Number;>;)V
MethodParameters:
Name Flags
values
public void addAll(java.util.Iterator<? extends java.lang.Number>);
descriptor: (Ljava/util/Iterator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: goto 2
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Number
invokevirtual java.lang.Number.doubleValue:()D
invokevirtual com.google.common.math.StatsAccumulator.add:(D)V
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/math/StatsAccumulator;
0 4 1 values Ljava/util/Iterator<+Ljava/lang/Number;>;
Signature: (Ljava/util/Iterator<+Ljava/lang/Number;>;)V
MethodParameters:
Name Flags
values
public void addAll(double[]);
descriptor: ([D)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 4
StackMap locals: com.google.common.math.StatsAccumulator double[] top top int int double[]
StackMap stack:
1: aload 6
iload 4
daload
dstore 2
start local 2 2: aload 0
dload 2
invokevirtual com.google.common.math.StatsAccumulator.add:(D)V
end local 2 3: iinc 4 1
StackMap locals:
StackMap stack:
4: iload 4
iload 5
if_icmplt 1
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/math/StatsAccumulator;
0 6 1 values [D
2 3 2 value D
MethodParameters:
Name Flags
values
public void addAll(int[]);
descriptor: ([I)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 4
StackMap locals: com.google.common.math.StatsAccumulator int[] top int int int[]
StackMap stack:
1: aload 5
iload 3
iaload
istore 2
start local 2 2: aload 0
iload 2
i2d
invokevirtual com.google.common.math.StatsAccumulator.add:(D)V
end local 2 3: iinc 3 1
StackMap locals:
StackMap stack:
4: iload 3
iload 4
if_icmplt 1
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/math/StatsAccumulator;
0 6 1 values [I
2 3 2 value I
MethodParameters:
Name Flags
values
public void addAll(long[]);
descriptor: ([J)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 4
StackMap locals: com.google.common.math.StatsAccumulator long[] top top int int long[]
StackMap stack:
1: aload 6
iload 4
laload
lstore 2
start local 2 2: aload 0
lload 2
l2d
invokevirtual com.google.common.math.StatsAccumulator.add:(D)V
end local 2 3: iinc 4 1
StackMap locals:
StackMap stack:
4: iload 4
iload 5
if_icmplt 1
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/math/StatsAccumulator;
0 6 1 values [J
2 3 2 value J
MethodParameters:
Name Flags
values
public void addAll(com.google.common.math.Stats);
descriptor: (Lcom/google/common/math/Stats;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.google.common.math.Stats.count:()J
lconst_0
lcmp
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.math.StatsAccumulator.count:J
lconst_0
lcmp
ifne 9
3: aload 0
aload 1
invokevirtual com.google.common.math.Stats.count:()J
putfield com.google.common.math.StatsAccumulator.count:J
4: aload 0
aload 1
invokevirtual com.google.common.math.Stats.mean:()D
putfield com.google.common.math.StatsAccumulator.mean:D
5: aload 0
aload 1
invokevirtual com.google.common.math.Stats.sumOfSquaresOfDeltas:()D
putfield com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:D
6: aload 0
aload 1
invokevirtual com.google.common.math.Stats.min:()D
putfield com.google.common.math.StatsAccumulator.min:D
7: aload 0
aload 1
invokevirtual com.google.common.math.Stats.max:()D
putfield com.google.common.math.StatsAccumulator.max:D
8: goto 21
9: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.google.common.math.StatsAccumulator.count:J
aload 1
invokevirtual com.google.common.math.Stats.count:()J
ladd
putfield com.google.common.math.StatsAccumulator.count:J
10: aload 0
getfield com.google.common.math.StatsAccumulator.mean:D
invokestatic com.google.common.primitives.Doubles.isFinite:(D)Z
ifeq 17
aload 1
invokevirtual com.google.common.math.Stats.mean:()D
invokestatic com.google.common.primitives.Doubles.isFinite:(D)Z
ifeq 17
11: aload 1
invokevirtual com.google.common.math.Stats.mean:()D
aload 0
getfield com.google.common.math.StatsAccumulator.mean:D
dsub
dstore 2
start local 2 12: aload 0
dup
getfield com.google.common.math.StatsAccumulator.mean:D
dload 2
aload 1
invokevirtual com.google.common.math.Stats.count:()J
l2d
dmul
aload 0
getfield com.google.common.math.StatsAccumulator.count:J
l2d
ddiv
dadd
putfield com.google.common.math.StatsAccumulator.mean:D
13: aload 0
dup
getfield com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:D
14: aload 1
invokevirtual com.google.common.math.Stats.sumOfSquaresOfDeltas:()D
dload 2
aload 1
invokevirtual com.google.common.math.Stats.mean:()D
aload 0
getfield com.google.common.math.StatsAccumulator.mean:D
dsub
dmul
aload 1
invokevirtual com.google.common.math.Stats.count:()J
l2d
dmul
dadd
dadd
15: putfield com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:D
end local 2 16: goto 19
17: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.google.common.math.StatsAccumulator.mean:D
aload 1
invokevirtual com.google.common.math.Stats.mean:()D
invokestatic com.google.common.math.StatsAccumulator.calculateNewMeanNonFinite:(DD)D
putfield com.google.common.math.StatsAccumulator.mean:D
18: aload 0
ldc NaN
putfield com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:D
19: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.google.common.math.StatsAccumulator.min:D
aload 1
invokevirtual com.google.common.math.Stats.min:()D
invokestatic java.lang.Math.min:(DD)D
putfield com.google.common.math.StatsAccumulator.min:D
20: aload 0
aload 0
getfield com.google.common.math.StatsAccumulator.max:D
aload 1
invokevirtual com.google.common.math.Stats.max:()D
invokestatic java.lang.Math.max:(DD)D
putfield com.google.common.math.StatsAccumulator.max:D
21: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lcom/google/common/math/StatsAccumulator;
0 22 1 values Lcom/google/common/math/Stats;
12 16 2 delta D
MethodParameters:
Name Flags
values
public com.google.common.math.Stats snapshot();
descriptor: ()Lcom/google/common/math/Stats;
flags: (0x0001) ACC_PUBLIC
Code:
stack=12, locals=1, args_size=1
start local 0 0: new com.google.common.math.Stats
dup
aload 0
getfield com.google.common.math.StatsAccumulator.count:J
aload 0
getfield com.google.common.math.StatsAccumulator.mean:D
aload 0
getfield com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:D
aload 0
getfield com.google.common.math.StatsAccumulator.min:D
aload 0
getfield com.google.common.math.StatsAccumulator.max:D
invokespecial com.google.common.math.Stats.<init>:(JDDDD)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/math/StatsAccumulator;
public long count();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.math.StatsAccumulator.count:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/math/StatsAccumulator;
public double mean();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.math.StatsAccumulator.count:J
lconst_0
lcmp
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: invokestatic com.google.common.base.Preconditions.checkState:(Z)V
3: aload 0
getfield com.google.common.math.StatsAccumulator.mean:D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/math/StatsAccumulator;
public final double sum();
descriptor: ()D
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.math.StatsAccumulator.mean:D
aload 0
getfield com.google.common.math.StatsAccumulator.count:J
l2d
dmul
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/math/StatsAccumulator;
public final double populationVariance();
descriptor: ()D
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.math.StatsAccumulator.count:J
lconst_0
lcmp
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: invokestatic com.google.common.base.Preconditions.checkState:(Z)V
3: aload 0
getfield com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:D
invokestatic java.lang.Double.isNaN:(D)Z
ifeq 5
4: ldc NaN
dreturn
5: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.math.StatsAccumulator.count:J
lconst_1
lcmp
ifne 7
6: dconst_0
dreturn
7: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:D
invokestatic com.google.common.math.DoubleUtils.ensureNonNegative:(D)D
aload 0
getfield com.google.common.math.StatsAccumulator.count:J
l2d
ddiv
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/google/common/math/StatsAccumulator;
public final double populationStandardDeviation();
descriptor: ()D
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.math.StatsAccumulator.populationVariance:()D
invokestatic java.lang.Math.sqrt:(D)D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/math/StatsAccumulator;
public final double sampleVariance();
descriptor: ()D
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.math.StatsAccumulator.count:J
lconst_1
lcmp
ifle 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: invokestatic com.google.common.base.Preconditions.checkState:(Z)V
3: aload 0
getfield com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:D
invokestatic java.lang.Double.isNaN:(D)Z
ifeq 5
4: ldc NaN
dreturn
5: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:D
invokestatic com.google.common.math.DoubleUtils.ensureNonNegative:(D)D
aload 0
getfield com.google.common.math.StatsAccumulator.count:J
lconst_1
lsub
l2d
ddiv
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/math/StatsAccumulator;
public final double sampleStandardDeviation();
descriptor: ()D
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.math.StatsAccumulator.sampleVariance:()D
invokestatic java.lang.Math.sqrt:(D)D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/math/StatsAccumulator;
public double min();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.math.StatsAccumulator.count:J
lconst_0
lcmp
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: invokestatic com.google.common.base.Preconditions.checkState:(Z)V
3: aload 0
getfield com.google.common.math.StatsAccumulator.min:D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/math/StatsAccumulator;
public double max();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.math.StatsAccumulator.count:J
lconst_0
lcmp
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: invokestatic com.google.common.base.Preconditions.checkState:(Z)V
3: aload 0
getfield com.google.common.math.StatsAccumulator.max:D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/math/StatsAccumulator;
double sumOfSquaresOfDeltas();
descriptor: ()D
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/math/StatsAccumulator;
static double calculateNewMeanNonFinite(double, double);
descriptor: (DD)D
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 2 0: dload 0
invokestatic com.google.common.primitives.Doubles.isFinite:(D)Z
ifeq 2
1: dload 2
dreturn
2: StackMap locals:
StackMap stack:
dload 2
invokestatic com.google.common.primitives.Doubles.isFinite:(D)Z
ifne 3
dload 0
dload 2
dcmpl
ifne 4
3: StackMap locals:
StackMap stack:
dload 0
dreturn
4: StackMap locals:
StackMap stack:
ldc NaN
dreturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 previousMean D
0 5 2 value D
MethodParameters:
Name Flags
previousMean
value
}
SourceFile: "StatsAccumulator.java"
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
com.google.common.annotations.GwtIncompatible()