public class org.apache.commons.math.stat.correlation.PearsonsCorrelation extends java.lang.Object
{
private final org.apache.commons.math.linear.RealMatrix correlationMatrix;
private final int nObs;
public void <init>()
{
org.apache.commons.math.stat.correlation.PearsonsCorrelation v;
v := @this: org.apache.commons.math.stat.correlation.PearsonsCorrelation;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: org.apache.commons.math.linear.RealMatrix correlationMatrix> = null;
v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: int nObs> = 0;
return;
}
public void <init>(double[][])
{
org.apache.commons.math.linear.BlockRealMatrix v;
double[][] v;
org.apache.commons.math.stat.correlation.PearsonsCorrelation v;
v := @this: org.apache.commons.math.stat.correlation.PearsonsCorrelation;
v := @parameter: double[][];
v = new org.apache.commons.math.linear.BlockRealMatrix;
specialinvoke v.<org.apache.commons.math.linear.BlockRealMatrix: void <init>(double[][])>(v);
specialinvoke v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: void <init>(org.apache.commons.math.linear.RealMatrix)>(v);
return;
}
public void <init>(org.apache.commons.math.linear.RealMatrix)
{
int v;
org.apache.commons.math.linear.RealMatrix v, v;
org.apache.commons.math.stat.correlation.PearsonsCorrelation v;
v := @this: org.apache.commons.math.stat.correlation.PearsonsCorrelation;
v := @parameter: org.apache.commons.math.linear.RealMatrix;
specialinvoke v.<java.lang.Object: void <init>()>();
specialinvoke v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: void checkSufficientData(org.apache.commons.math.linear.RealMatrix)>(v);
v = interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: int getRowDimension()>();
v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: int nObs> = v;
v = virtualinvoke v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: org.apache.commons.math.linear.RealMatrix computeCorrelationMatrix(org.apache.commons.math.linear.RealMatrix)>(v);
v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: org.apache.commons.math.linear.RealMatrix correlationMatrix> = v;
return;
}
public void <init>(org.apache.commons.math.stat.correlation.Covariance)
{
java.lang.Object[] v;
org.apache.commons.math.exception.util.LocalizedFormats v;
org.apache.commons.math.stat.correlation.Covariance v;
org.apache.commons.math.stat.correlation.PearsonsCorrelation v;
org.apache.commons.math.exception.NullArgumentException v;
int v;
org.apache.commons.math.linear.RealMatrix v, v;
v := @this: org.apache.commons.math.stat.correlation.PearsonsCorrelation;
v := @parameter: org.apache.commons.math.stat.correlation.Covariance;
specialinvoke v.<java.lang.Object: void <init>()>();
v = virtualinvoke v.<org.apache.commons.math.stat.correlation.Covariance: org.apache.commons.math.linear.RealMatrix getCovarianceMatrix()>();
if v != null goto label;
v = new org.apache.commons.math.exception.NullArgumentException;
v = <org.apache.commons.math.exception.util.LocalizedFormats: org.apache.commons.math.exception.util.LocalizedFormats COVARIANCE_MATRIX>;
v = newarray (java.lang.Object)[0];
specialinvoke v.<org.apache.commons.math.exception.NullArgumentException: void <init>(org.apache.commons.math.exception.util.Localizable,java.lang.Object[])>(v, v);
throw v;
label:
v = virtualinvoke v.<org.apache.commons.math.stat.correlation.Covariance: int getN()>();
v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: int nObs> = v;
v = virtualinvoke v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: org.apache.commons.math.linear.RealMatrix covarianceToCorrelation(org.apache.commons.math.linear.RealMatrix)>(v);
v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: org.apache.commons.math.linear.RealMatrix correlationMatrix> = v;
return;
}
public void <init>(org.apache.commons.math.linear.RealMatrix, int)
{
int v;
org.apache.commons.math.linear.RealMatrix v, v;
org.apache.commons.math.stat.correlation.PearsonsCorrelation v;
v := @this: org.apache.commons.math.stat.correlation.PearsonsCorrelation;
v := @parameter: org.apache.commons.math.linear.RealMatrix;
v := @parameter: int;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: int nObs> = v;
v = virtualinvoke v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: org.apache.commons.math.linear.RealMatrix covarianceToCorrelation(org.apache.commons.math.linear.RealMatrix)>(v);
v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: org.apache.commons.math.linear.RealMatrix correlationMatrix> = v;
return;
}
public org.apache.commons.math.linear.RealMatrix getCorrelationMatrix()
{
org.apache.commons.math.linear.RealMatrix v;
org.apache.commons.math.stat.correlation.PearsonsCorrelation v;
v := @this: org.apache.commons.math.stat.correlation.PearsonsCorrelation;
v = v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: org.apache.commons.math.linear.RealMatrix correlationMatrix>;
return v;
}
public org.apache.commons.math.linear.RealMatrix getCorrelationStandardErrors()
{
org.apache.commons.math.linear.BlockRealMatrix v;
double[] v;
int v, v, v, v, v;
double v, v, v, v, v;
org.apache.commons.math.stat.correlation.PearsonsCorrelation v;
org.apache.commons.math.linear.RealMatrix v, v;
double[][] v;
v := @this: org.apache.commons.math.stat.correlation.PearsonsCorrelation;
v = v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: org.apache.commons.math.linear.RealMatrix correlationMatrix>;
v = interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: int getColumnDimension()>();
v = newmultiarray (double)[v][v];
v = 0;
label:
if v >= v goto label;
v = 0;
label:
if v >= v goto label;
v = v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: org.apache.commons.math.linear.RealMatrix correlationMatrix>;
v = interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: double getEntry(int,int)>(v, v);
v = v[v];
v = v * v;
v = 1.0 - v;
v = v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: int nObs>;
v = v - 2;
v = v / v;
v = staticinvoke <org.apache.commons.math.util.FastMath: double sqrt(double)>(v);
v[v] = v;
v = v + 1;
goto label;
label:
v = v + 1;
goto label;
label:
v = new org.apache.commons.math.linear.BlockRealMatrix;
specialinvoke v.<org.apache.commons.math.linear.BlockRealMatrix: void <init>(double[][])>(v);
return v;
}
public org.apache.commons.math.linear.RealMatrix getCorrelationPValues()
{
org.apache.commons.math.linear.BlockRealMatrix v;
double[] v, v;
int v, v, v, v, v, v, v;
double v, v, v, v, v, v, v, v, v, v;
org.apache.commons.math.distribution.TDistribution v;
org.apache.commons.math.stat.correlation.PearsonsCorrelation v;
org.apache.commons.math.linear.RealMatrix v, v;
double[][] v;
v := @this: org.apache.commons.math.stat.correlation.PearsonsCorrelation;
v = new org.apache.commons.math.distribution.TDistribution;
v = v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: int nObs>;
v = v - 2;
specialinvoke v.<org.apache.commons.math.distribution.TDistribution: void <init>(double)>(v);
v = v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: org.apache.commons.math.linear.RealMatrix correlationMatrix>;
v = interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: int getColumnDimension()>();
v = newmultiarray (double)[v][v];
v = 0;
label:
if v >= v goto label;
v = 0;
label:
if v >= v goto label;
if v != v goto label;
v = v[v];
v[v] = 0.0;
goto label;
label:
v = v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: org.apache.commons.math.linear.RealMatrix correlationMatrix>;
v = interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: double getEntry(int,int)>(v, v);
v = v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: int nObs>;
v = v - 2;
v = v * v;
v = 1.0 - v;
v = v / v;
v = staticinvoke <org.apache.commons.math.util.FastMath: double sqrt(double)>(v);
v = v * v;
v = staticinvoke <org.apache.commons.math.util.FastMath: double abs(double)>(v);
v = v[v];
v = neg v;
v = virtualinvoke v.<org.apache.commons.math.distribution.TDistribution: double cumulativeProbability(double)>(v);
v = 2.0 * v;
v[v] = v;
label:
v = v + 1;
goto label;
label:
v = v + 1;
goto label;
label:
v = new org.apache.commons.math.linear.BlockRealMatrix;
specialinvoke v.<org.apache.commons.math.linear.BlockRealMatrix: void <init>(double[][])>(v);
return v;
}
public org.apache.commons.math.linear.RealMatrix computeCorrelationMatrix(org.apache.commons.math.linear.RealMatrix)
{
org.apache.commons.math.linear.BlockRealMatrix v;
double[] v, v;
org.apache.commons.math.stat.correlation.PearsonsCorrelation v;
int v, v, v;
org.apache.commons.math.linear.RealMatrix v;
double v;
v := @this: org.apache.commons.math.stat.correlation.PearsonsCorrelation;
v := @parameter: org.apache.commons.math.linear.RealMatrix;
v = interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: int getColumnDimension()>();
v = new org.apache.commons.math.linear.BlockRealMatrix;
specialinvoke v.<org.apache.commons.math.linear.BlockRealMatrix: void <init>(int,int)>(v, v);
v = 0;
label:
if v >= v goto label;
v = 0;
label:
if v >= v goto label;
v = interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: double[] getColumn(int)>(v);
v = interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: double[] getColumn(int)>(v);
v = virtualinvoke v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: double correlation(double[],double[])>(v, v);
interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: void setEntry(int,int,double)>(v, v, v);
interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: void setEntry(int,int,double)>(v, v, v);
v = v + 1;
goto label;
label:
interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: void setEntry(int,int,double)>(v, v, 1.0);
v = v + 1;
goto label;
label:
return v;
}
public org.apache.commons.math.linear.RealMatrix computeCorrelationMatrix(double[][])
{
org.apache.commons.math.linear.BlockRealMatrix v;
org.apache.commons.math.linear.RealMatrix v;
double[][] v;
org.apache.commons.math.stat.correlation.PearsonsCorrelation v;
v := @this: org.apache.commons.math.stat.correlation.PearsonsCorrelation;
v := @parameter: double[][];
v = new org.apache.commons.math.linear.BlockRealMatrix;
specialinvoke v.<org.apache.commons.math.linear.BlockRealMatrix: void <init>(double[][])>(v);
v = virtualinvoke v.<org.apache.commons.math.stat.correlation.PearsonsCorrelation: org.apache.commons.math.linear.RealMatrix computeCorrelationMatrix(org.apache.commons.math.linear.RealMatrix)>(v);
return v;
}
public double correlation(double[], double[])
{
java.lang.Object[] v;
double[] v, v;
java.lang.Integer v, v;
int v, v, v, v, v, v, v, v;
double v, v, v;
org.apache.commons.math.exception.MathIllegalArgumentException v;
org.apache.commons.math.exception.util.LocalizedFormats v;
org.apache.commons.math.exception.DimensionMismatchException v;
org.apache.commons.math.stat.correlation.PearsonsCorrelation v;
org.apache.commons.math.stat.regression.SimpleRegression v;
v := @this: org.apache.commons.math.stat.correlation.PearsonsCorrelation;
v := @parameter: double[];
v := @parameter: double[];
v = new org.apache.commons.math.stat.regression.SimpleRegression;
specialinvoke v.<org.apache.commons.math.stat.regression.SimpleRegression: void <init>()>();
v = lengthof v;
v = lengthof v;
if v == v goto label;
v = new org.apache.commons.math.exception.DimensionMismatchException;
v = lengthof v;
v = lengthof v;
specialinvoke v.<org.apache.commons.math.exception.DimensionMismatchException: void <init>(int,int)>(v, v);
throw v;
label:
v = lengthof v;
if v >= 2 goto label;
v = new org.apache.commons.math.exception.MathIllegalArgumentException;
v = <org.apache.commons.math.exception.util.LocalizedFormats: org.apache.commons.math.exception.util.LocalizedFormats INSUFFICIENT_DIMENSION>;
v = newarray (java.lang.Object)[2];
v = lengthof v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v[1] = v;
specialinvoke v.<org.apache.commons.math.exception.MathIllegalArgumentException: void <init>(org.apache.commons.math.exception.util.Localizable,java.lang.Object[])>(v, v);
throw v;
label:
v = 0;
label:
v = lengthof v;
if v >= v goto label;
v = v[v];
v = v[v];
virtualinvoke v.<org.apache.commons.math.stat.regression.SimpleRegression: void addData(double,double)>(v, v);
v = v + 1;
goto label;
label:
v = virtualinvoke v.<org.apache.commons.math.stat.regression.SimpleRegression: double getR()>();
return v;
}
public org.apache.commons.math.linear.RealMatrix covarianceToCorrelation(org.apache.commons.math.linear.RealMatrix)
{
org.apache.commons.math.linear.BlockRealMatrix v;
org.apache.commons.math.stat.correlation.PearsonsCorrelation v;
int v, v, v;
org.apache.commons.math.linear.RealMatrix v;
double v, v, v, v, v, v, v;
v := @this: org.apache.commons.math.stat.correlation.PearsonsCorrelation;
v := @parameter: org.apache.commons.math.linear.RealMatrix;
v = interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: int getColumnDimension()>();
v = new org.apache.commons.math.linear.BlockRealMatrix;
specialinvoke v.<org.apache.commons.math.linear.BlockRealMatrix: void <init>(int,int)>(v, v);
v = 0;
label:
if v >= v goto label;
v = interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: double getEntry(int,int)>(v, v);
v = staticinvoke <org.apache.commons.math.util.FastMath: double sqrt(double)>(v);
interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: void setEntry(int,int,double)>(v, v, 1.0);
v = 0;
label:
if v >= v goto label;
v = interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: double getEntry(int,int)>(v, v);
v = interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: double getEntry(int,int)>(v, v);
v = staticinvoke <org.apache.commons.math.util.FastMath: double sqrt(double)>(v);
v = v * v;
v = v / v;
interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: void setEntry(int,int,double)>(v, v, v);
interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: void setEntry(int,int,double)>(v, v, v);
v = v + 1;
goto label;
label:
v = v + 1;
goto label;
label:
return v;
}
private void checkSufficientData(org.apache.commons.math.linear.RealMatrix)
{
java.lang.Object[] v;
org.apache.commons.math.exception.util.LocalizedFormats v;
java.lang.Integer v, v;
org.apache.commons.math.stat.correlation.PearsonsCorrelation v;
int v, v;
org.apache.commons.math.linear.RealMatrix v;
org.apache.commons.math.exception.MathIllegalArgumentException v;
v := @this: org.apache.commons.math.stat.correlation.PearsonsCorrelation;
v := @parameter: org.apache.commons.math.linear.RealMatrix;
v = interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: int getRowDimension()>();
v = interfaceinvoke v.<org.apache.commons.math.linear.RealMatrix: int getColumnDimension()>();
if v < 2 goto label;
if v >= 2 goto label;
label:
v = new org.apache.commons.math.exception.MathIllegalArgumentException;
v = <org.apache.commons.math.exception.util.LocalizedFormats: org.apache.commons.math.exception.util.LocalizedFormats INSUFFICIENT_ROWS_AND_COLUMNS>;
v = newarray (java.lang.Object)[2];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v[1] = v;
specialinvoke v.<org.apache.commons.math.exception.MathIllegalArgumentException: void <init>(org.apache.commons.math.exception.util.Localizable,java.lang.Object[])>(v, v);
throw v;
label:
return;
}
}