jstats
Class Correlation

java.lang.Object
  extended byjstats.Correlation

public class Correlation
extends java.lang.Object

Author:
justin To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Constructor Summary
Correlation()
           
 
Method Summary
static double coefficient(double[] x, double[] y)
          Computes the coefficient of correlation for sample or population data.
static double fisherZTransformation(double coefficient)
           
static double fisherZTransformation(double[] x, double[] y)
           
static double multipleCorrelationCoefficient()
           
static double normalCorrelation(double[] x, double[] y, double p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Correlation

public Correlation()
Method Detail

coefficient

public static double coefficient(double[] x,
                                 double[] y)
                          throws StatisticException
Computes the coefficient of correlation for sample or population data.

Parameters:
x -
y -
Returns:
the coeffecient of x and y
Throws:
StatisticException

fisherZTransformation

public static double fisherZTransformation(double[] x,
                                           double[] y)
                                    throws StatisticException
Throws:
StatisticException

fisherZTransformation

public static double fisherZTransformation(double coefficient)
                                    throws StatisticException
Throws:
StatisticException

normalCorrelation

public static double normalCorrelation(double[] x,
                                       double[] y,
                                       double p)
                                throws StatisticException
Throws:
StatisticException

multipleCorrelationCoefficient

public static double multipleCorrelationCoefficient()