hydroScalingAPI.util.statistics
Class Stats

java.lang.Object
  extended by hydroScalingAPI.util.statistics.Stats

public class Stats
extends java.lang.Object

An object that calculates the principal statistics of an array or matrix of doubles or floats

Author:
Ricardo Mantilla

Field Summary
 int dataCount
          The total number of elements
 float kurtosis
          Kurtosis parameter
 float maxValue
          The maximum value
 float meanValue
          The average
 float minValue
          The minimum
 float skewness
          The skewness
 float standardDeviation
          The standard deviation
 float total
          The sum of the elements
 
Constructor Summary
Stats()
          Creates a new Stats.
Stats(double[] data)
          Creates new Stats
Stats(double[][] data)
          Creates new Stats
Stats(double[][] data, double missing)
          Creates new Stats
Stats(double[] data, float missing)
          Creates new Stats
Stats(float[] data)
          Creates new Stats
Stats(float[][] data)
          Creates new Stats
Stats(float[][] data, float missing)
          Creates new Stats
Stats(float[] data, float missing)
          Creates new Stats
 
Method Summary
static void main(java.lang.String[] args)
          Tests for the class
 java.lang.String toString()
          Composes a String with the statistics for the data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

meanValue

public float meanValue
The average


standardDeviation

public float standardDeviation
The standard deviation


skewness

public float skewness
The skewness


kurtosis

public float kurtosis
Kurtosis parameter


maxValue

public float maxValue
The maximum value


minValue

public float minValue
The minimum


total

public float total
The sum of the elements


dataCount

public int dataCount
The total number of elements

Constructor Detail

Stats

public Stats(float[][] data)
Creates new Stats

Parameters:
data - The data array

Stats

public Stats(float[] data)
Creates new Stats

Parameters:
data - The data array

Stats

public Stats(float[][] data,
             float missing)
Creates new Stats

Parameters:
missing - The missing value
data - The data array

Stats

public Stats()
Creates a new Stats. Paramters must be assigned after.


Stats

public Stats(float[] data,
             float missing)
Creates new Stats

Parameters:
missing - The missing value
data - The data array

Stats

public Stats(double[][] data)
Creates new Stats

Parameters:
data - The data array

Stats

public Stats(double[] data)
Creates new Stats

Parameters:
data - The data array

Stats

public Stats(double[][] data,
             double missing)
Creates new Stats

Parameters:
missing - The missing value
data - The data array

Stats

public Stats(double[] data,
             float missing)
Creates new Stats

Parameters:
missing - The missing value
data - The data array
Method Detail

toString

public java.lang.String toString()
Composes a String with the statistics for the data

Overrides:
toString in class java.lang.Object
Returns:
The string with statistics

main

public static void main(java.lang.String[] args)
Tests for the class

Parameters:
args - The command line parameters


CUENCAS was initially developed by Ricardo Mantilla at the University of Colorado under the supervision of Dr. Vijay K. Gupta. We wish to recognize the support from the National Science Fundation.