public final class com.google.common.math.PairedStatsAccumulator
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.math.PairedStatsAccumulator
super_class: java.lang.Object
{
private final com.google.common.math.StatsAccumulator xStats;
descriptor: Lcom/google/common/math/StatsAccumulator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.google.common.math.StatsAccumulator yStats;
descriptor: Lcom/google/common/math/StatsAccumulator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private double sumOfProductsOfDeltas;
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
new com.google.common.math.StatsAccumulator
dup
invokespecial com.google.common.math.StatsAccumulator.<init>:()V
putfield com.google.common.math.PairedStatsAccumulator.xStats:Lcom/google/common/math/StatsAccumulator;
2: aload 0
new com.google.common.math.StatsAccumulator
dup
invokespecial com.google.common.math.StatsAccumulator.<init>:()V
putfield com.google.common.math.PairedStatsAccumulator.yStats:Lcom/google/common/math/StatsAccumulator;
3: aload 0
dconst_0
putfield com.google.common.math.PairedStatsAccumulator.sumOfProductsOfDeltas:D
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/math/PairedStatsAccumulator;
public void add(double, double);
descriptor: (DD)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getfield com.google.common.math.PairedStatsAccumulator.xStats:Lcom/google/common/math/StatsAccumulator;
dload 1
invokevirtual com.google.common.math.StatsAccumulator.add:(D)V
1: dload 1
invokestatic com.google.common.primitives.Doubles.isFinite:(D)Z
ifeq 5
dload 3
invokestatic com.google.common.primitives.Doubles.isFinite:(D)Z
ifeq 5
2: aload 0
getfield com.google.common.math.PairedStatsAccumulator.xStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.count:()J
lconst_1
lcmp
ifle 6
3: aload 0
dup
getfield com.google.common.math.PairedStatsAccumulator.sumOfProductsOfDeltas:D
dload 1
aload 0
getfield com.google.common.math.PairedStatsAccumulator.xStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.mean:()D
dsub
dload 3
aload 0
getfield com.google.common.math.PairedStatsAccumulator.yStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.mean:()D
dsub
dmul
dadd
putfield com.google.common.math.PairedStatsAccumulator.sumOfProductsOfDeltas:D
4: goto 6
5: StackMap locals:
StackMap stack:
aload 0
ldc NaN
putfield com.google.common.math.PairedStatsAccumulator.sumOfProductsOfDeltas:D
6: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.math.PairedStatsAccumulator.yStats:Lcom/google/common/math/StatsAccumulator;
dload 3
invokevirtual com.google.common.math.StatsAccumulator.add:(D)V
7: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/google/common/math/PairedStatsAccumulator;
0 8 1 x D
0 8 3 y D
MethodParameters:
Name Flags
x
y
public void addAll(com.google.common.math.PairedStats);
descriptor: (Lcom/google/common/math/PairedStats;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.google.common.math.PairedStats.count:()J
lconst_0
lcmp
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.math.PairedStatsAccumulator.xStats:Lcom/google/common/math/StatsAccumulator;
aload 1
invokevirtual com.google.common.math.PairedStats.xStats:()Lcom/google/common/math/Stats;
invokevirtual com.google.common.math.StatsAccumulator.addAll:(Lcom/google/common/math/Stats;)V
3: aload 0
getfield com.google.common.math.PairedStatsAccumulator.yStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.count:()J
lconst_0
lcmp
ifne 6
4: aload 0
aload 1
invokevirtual com.google.common.math.PairedStats.sumOfProductsOfDeltas:()D
putfield com.google.common.math.PairedStatsAccumulator.sumOfProductsOfDeltas:D
5: goto 15
6: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.google.common.math.PairedStatsAccumulator.sumOfProductsOfDeltas:D
7: aload 1
invokevirtual com.google.common.math.PairedStats.sumOfProductsOfDeltas:()D
8: aload 1
invokevirtual com.google.common.math.PairedStats.xStats:()Lcom/google/common/math/Stats;
invokevirtual com.google.common.math.Stats.mean:()D
aload 0
getfield com.google.common.math.PairedStatsAccumulator.xStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.mean:()D
dsub
9: aload 1
invokevirtual com.google.common.math.PairedStats.yStats:()Lcom/google/common/math/Stats;
invokevirtual com.google.common.math.Stats.mean:()D
aload 0
getfield com.google.common.math.PairedStatsAccumulator.yStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.mean:()D
dsub
10: dmul
11: aload 1
invokevirtual com.google.common.math.PairedStats.count:()J
l2d
12: dmul
13: dadd
dadd
14: putfield com.google.common.math.PairedStatsAccumulator.sumOfProductsOfDeltas:D
15: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.math.PairedStatsAccumulator.yStats:Lcom/google/common/math/StatsAccumulator;
aload 1
invokevirtual com.google.common.math.PairedStats.yStats:()Lcom/google/common/math/Stats;
invokevirtual com.google.common.math.StatsAccumulator.addAll:(Lcom/google/common/math/Stats;)V
16: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/google/common/math/PairedStatsAccumulator;
0 17 1 values Lcom/google/common/math/PairedStats;
MethodParameters:
Name Flags
values
public com.google.common.math.PairedStats snapshot();
descriptor: ()Lcom/google/common/math/PairedStats;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: new com.google.common.math.PairedStats
dup
aload 0
getfield com.google.common.math.PairedStatsAccumulator.xStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.snapshot:()Lcom/google/common/math/Stats;
aload 0
getfield com.google.common.math.PairedStatsAccumulator.yStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.snapshot:()Lcom/google/common/math/Stats;
aload 0
getfield com.google.common.math.PairedStatsAccumulator.sumOfProductsOfDeltas:D
invokespecial com.google.common.math.PairedStats.<init>:(Lcom/google/common/math/Stats;Lcom/google/common/math/Stats;D)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/math/PairedStatsAccumulator;
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.PairedStatsAccumulator.xStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual 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/PairedStatsAccumulator;
public com.google.common.math.Stats xStats();
descriptor: ()Lcom/google/common/math/Stats;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.math.PairedStatsAccumulator.xStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.snapshot:()Lcom/google/common/math/Stats;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/math/PairedStatsAccumulator;
public com.google.common.math.Stats yStats();
descriptor: ()Lcom/google/common/math/Stats;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.math.PairedStatsAccumulator.yStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.snapshot:()Lcom/google/common/math/Stats;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/math/PairedStatsAccumulator;
public double populationCovariance();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.math.PairedStatsAccumulator.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.PairedStatsAccumulator.sumOfProductsOfDeltas:D
aload 0
invokevirtual com.google.common.math.PairedStatsAccumulator.count:()J
l2d
ddiv
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/math/PairedStatsAccumulator;
public final double sampleCovariance();
descriptor: ()D
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.math.PairedStatsAccumulator.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.PairedStatsAccumulator.sumOfProductsOfDeltas:D
aload 0
invokevirtual com.google.common.math.PairedStatsAccumulator.count:()J
lconst_1
lsub
l2d
ddiv
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/math/PairedStatsAccumulator;
public final double pearsonsCorrelationCoefficient();
descriptor: ()D
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=7, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.math.PairedStatsAccumulator.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.PairedStatsAccumulator.sumOfProductsOfDeltas: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.PairedStatsAccumulator.xStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:()D
dstore 1
start local 1 6: aload 0
getfield com.google.common.math.PairedStatsAccumulator.yStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:()D
dstore 3
start local 3 7: dload 1
dconst_0
dcmpl
ifle 8
iconst_1
goto 9
StackMap locals: double double
StackMap stack:
8: iconst_0
StackMap locals:
StackMap stack: int
9: invokestatic com.google.common.base.Preconditions.checkState:(Z)V
10: dload 3
dconst_0
dcmpl
ifle 11
iconst_1
goto 12
StackMap locals:
StackMap stack:
11: iconst_0
StackMap locals:
StackMap stack: int
12: invokestatic com.google.common.base.Preconditions.checkState:(Z)V
13: aload 0
dload 1
dload 3
dmul
invokevirtual com.google.common.math.PairedStatsAccumulator.ensurePositive:(D)D
14: dstore 5
start local 5 15: aload 0
getfield com.google.common.math.PairedStatsAccumulator.sumOfProductsOfDeltas:D
dload 5
invokestatic java.lang.Math.sqrt:(D)D
ddiv
invokestatic com.google.common.math.PairedStatsAccumulator.ensureInUnitRange:(D)D
dreturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/google/common/math/PairedStatsAccumulator;
6 16 1 xSumOfSquaresOfDeltas D
7 16 3 ySumOfSquaresOfDeltas D
15 16 5 productOfSumsOfSquaresOfDeltas D
public final com.google.common.math.LinearTransformation leastSquaresFit();
descriptor: ()Lcom/google/common/math/LinearTransformation;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.math.PairedStatsAccumulator.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.PairedStatsAccumulator.sumOfProductsOfDeltas:D
invokestatic java.lang.Double.isNaN:(D)Z
ifeq 5
4: invokestatic com.google.common.math.LinearTransformation.forNaN:()Lcom/google/common/math/LinearTransformation;
areturn
5: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.math.PairedStatsAccumulator.xStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:()D
dstore 1
start local 1 6: dload 1
dconst_0
dcmpl
ifle 12
7: aload 0
getfield com.google.common.math.PairedStatsAccumulator.yStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:()D
dconst_0
dcmpl
ifle 11
8: aload 0
getfield com.google.common.math.PairedStatsAccumulator.xStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.mean:()D
aload 0
getfield com.google.common.math.PairedStatsAccumulator.yStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.mean:()D
invokestatic com.google.common.math.LinearTransformation.mapping:(DD)Lcom/google/common/math/LinearTransformation$LinearTransformationBuilder;
9: aload 0
getfield com.google.common.math.PairedStatsAccumulator.sumOfProductsOfDeltas:D
dload 1
ddiv
invokevirtual com.google.common.math.LinearTransformation$LinearTransformationBuilder.withSlope:(D)Lcom/google/common/math/LinearTransformation;
10: areturn
11: StackMap locals: double
StackMap stack:
aload 0
getfield com.google.common.math.PairedStatsAccumulator.yStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.mean:()D
invokestatic com.google.common.math.LinearTransformation.horizontal:(D)Lcom/google/common/math/LinearTransformation;
areturn
12: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.math.PairedStatsAccumulator.yStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.sumOfSquaresOfDeltas:()D
dconst_0
dcmpl
ifle 13
iconst_1
goto 14
StackMap locals:
StackMap stack:
13: iconst_0
StackMap locals:
StackMap stack: int
14: invokestatic com.google.common.base.Preconditions.checkState:(Z)V
15: aload 0
getfield com.google.common.math.PairedStatsAccumulator.xStats:Lcom/google/common/math/StatsAccumulator;
invokevirtual com.google.common.math.StatsAccumulator.mean:()D
invokestatic com.google.common.math.LinearTransformation.vertical:(D)Lcom/google/common/math/LinearTransformation;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/google/common/math/PairedStatsAccumulator;
6 16 1 xSumOfSquaresOfDeltas D
private double ensurePositive(double);
descriptor: (D)D
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: dload 1
dconst_0
dcmpl
ifle 2
1: dload 1
dreturn
2: StackMap locals:
StackMap stack:
ldc 4.9E-324
dreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/math/PairedStatsAccumulator;
0 3 1 value D
MethodParameters:
Name Flags
value
private static double ensureInUnitRange(double);
descriptor: (D)D
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: dload 0
dconst_1
dcmpl
iflt 2
1: dconst_1
dreturn
2: StackMap locals:
StackMap stack:
dload 0
ldc -1.0
dcmpg
ifgt 4
3: ldc -1.0
dreturn
4: StackMap locals:
StackMap stack:
dload 0
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 value D
MethodParameters:
Name Flags
value
}
SourceFile: "PairedStatsAccumulator.java"
InnerClasses:
public final LinearTransformationBuilder = com.google.common.math.LinearTransformation$LinearTransformationBuilder of com.google.common.math.LinearTransformation
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()
com.google.common.annotations.GwtIncompatible()