javax.datamining.statistics
Interface ContinuousStatistics


public interface ContinuousStatistics

A ContinuousStatistics captures continuous statistical properties of an attribute.

Author:
JSR-73 Java Data Mining Expert Group

Method Summary
 long[] getFrequencies()
          Returns an array of frequencies of all available intervals (ordered as the result of getIntervals).
 long getFrequency(Interval range)
          Returns the frequency of values in the given interval.
 Interval[] getIntervals()
          Returns an array of intervals for which frequencies are available.
 double[] getSum()
          Returns the sum of all values of the attribute.
 double getSum(Interval range)
          Returns the sum of all values in the given interval.
 double[] getSumOfSquares()
          Returns the sum of the squares of all values of the attribute.
 double getSumOfSquares(Interval range)
          Returns the sum of the squares of all values in the given interval.
 

Method Detail

getFrequencies

public long[] getFrequencies()
Returns an array of frequencies of all available intervals (ordered as the result of getIntervals).

Returns:
long[]

getFrequency

public long getFrequency(Interval range)
Returns the frequency of values in the given interval.

Parameters:
range - The interval from which the number of values is counted and returned.
Returns:
long

getIntervals

public Interval[] getIntervals()
Returns an array of intervals for which frequencies are available.

Returns:
Interval[]

getSum

public double[] getSum()
Returns the sum of all values of the attribute. Used to compute the overall mean.

Returns:
double[]

getSum

public double getSum(Interval range)
Returns the sum of all values in the given interval. Used to compute the mean.

Parameters:
range - The interval from which the total sum of the values is computed and returned.
Returns:
double

getSumOfSquares

public double[] getSumOfSquares()
Returns the sum of the squares of all values of the attribute. Used to compute the variance for attribute.

Returns:
double[]

getSumOfSquares

public double getSumOfSquares(Interval range)
Returns the sum of the squares of all values in the given interval. Used to compute the variance for the interval.

Parameters:
range - The interval from which the sum of the squares of the values is computed and returned.
Returns:
double