edu.wisc.ssec.mcidasv.data.hydra
Class Statistics

java.lang.Object
  extended by edu.wisc.ssec.mcidasv.data.hydra.Statistics

public class Statistics
extends Object


Field Summary
(package private)  org.apache.commons.math3.stat.descriptive.DescriptiveStatistics[] descriptiveStats
           
(package private)  int[] numGoodPoints
           
(package private)  int numPoints
           
(package private)  org.apache.commons.math3.stat.correlation.PearsonsCorrelation pCorrelation
           
(package private)  int rngTupLen
           
(package private)  double[][] rngVals
           
(package private)  MathType statType
           
(package private)  double[][] values_x
           
 
Constructor Summary
Statistics(FlatField fltFld)
           
 
Method Summary
 Data correlation(FlatField fltFld)
           
 Data geometricMean()
           
 int[] getNumGoodPoints()
          get the number of non-missing points in each range component
 double[][] getRngVals()
           
 double[][] getValues()
           
 Data kurtosis()
           
private  Data makeStat(double[] stats)
           
 Data max()
           
 Data mean()
           
 Data median()
           
 Data min()
           
 int numPoints()
          get the number of points in the domain of the FlatField
private  double[] removeMissing(double[] vals)
           
private  double[][] removeMissing(double[][] vals)
           
private  double[][] removeMissingAND(double[] vals_x, double[] vals_y)
           
 Data skewness()
           
 Data standardDeviation()
           
 Data variance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descriptiveStats

org.apache.commons.math3.stat.descriptive.DescriptiveStatistics[] descriptiveStats

values_x

double[][] values_x

rngVals

double[][] rngVals

rngTupLen

int rngTupLen

numPoints

int numPoints

numGoodPoints

int[] numGoodPoints

statType

MathType statType

pCorrelation

org.apache.commons.math3.stat.correlation.PearsonsCorrelation pCorrelation
Constructor Detail

Statistics

public Statistics(FlatField fltFld)
           throws VisADException,
                  RemoteException
Throws:
VisADException
RemoteException
Method Detail

numPoints

public int numPoints()
get the number of points in the domain of the FlatField

Returns:
number of points

getNumGoodPoints

public int[] getNumGoodPoints()
get the number of non-missing points in each range component

Returns:
number of non-missing points

getRngVals

public double[][] getRngVals()

getValues

public double[][] getValues()

removeMissing

private double[] removeMissing(double[] vals)

removeMissing

private double[][] removeMissing(double[][] vals)

mean

public Data mean()
          throws VisADException,
                 RemoteException
Throws:
VisADException
RemoteException

geometricMean

public Data geometricMean()
                   throws VisADException,
                          RemoteException
Throws:
VisADException
RemoteException

max

public Data max()
         throws VisADException,
                RemoteException
Throws:
VisADException
RemoteException

min

public Data min()
         throws VisADException,
                RemoteException
Throws:
VisADException
RemoteException

median

public Data median()
            throws VisADException,
                   RemoteException
Throws:
VisADException
RemoteException

variance

public Data variance()
              throws VisADException,
                     RemoteException
Throws:
VisADException
RemoteException

kurtosis

public Data kurtosis()
              throws VisADException,
                     RemoteException
Throws:
VisADException
RemoteException

standardDeviation

public Data standardDeviation()
                       throws VisADException,
                              RemoteException
Throws:
VisADException
RemoteException

skewness

public Data skewness()
              throws VisADException,
                     RemoteException
Throws:
VisADException
RemoteException

correlation

public Data correlation(FlatField fltFld)
                 throws VisADException,
                        RemoteException
Throws:
VisADException
RemoteException

makeStat

private Data makeStat(double[] stats)
               throws VisADException,
                      RemoteException
Throws:
VisADException
RemoteException

removeMissingAND

private double[][] removeMissingAND(double[] vals_x,
                                    double[] vals_y)