uk.ac.ed.ph.signal
Class RealStatistics

java.lang.Object
  extended by uk.ac.ed.ph.signal.Statistics
      extended by uk.ac.ed.ph.signal.RealStatistics

public class RealStatistics
extends Statistics

Class to form the statistics of a RealSignal or RealImage, which must be in REAL space.


Field Summary
 
Fields inherited from class uk.ac.ed.ph.signal.Statistics
areValid, data
 
Constructor Summary
RealStatistics(RealDataArray d)
          Constructor to form the RealStatistics for a RealDataArray
RealStatistics(RealImage im)
          Constructor to form the RealStatistics of a RealImage.
RealStatistics(RealSignal s)
          Constructor to form the RealStatistics of a RealSignal
 
Method Summary
 void calculate()
          Void method to calculate (re re-calculate) the statitics
 double getMax()
          Get the maximum value
 double getMean()
          Get the mean value
 double getMin()
          Get the minimum value
 double getPower()
          Get the power value
 double getVariance()
          Get the variance value
 String toString()
          Format as a String
 
Methods inherited from class uk.ac.ed.ph.signal.Statistics
getDataArray, getValid, setValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RealStatistics

public RealStatistics(RealImage im)
Constructor to form the RealStatistics of a RealImage.

Parameters:
im - the RealImage

RealStatistics

public RealStatistics(RealSignal s)
Constructor to form the RealStatistics of a RealSignal

Parameters:
s - the RealSignal

RealStatistics

public RealStatistics(RealDataArray d)
Constructor to form the RealStatistics for a RealDataArray

Parameters:
d - the RealDataArray
Method Detail

calculate

public void calculate()
Void method to calculate (re re-calculate) the statitics

Overrides:
calculate in class Statistics

getMin

public double getMin()
Get the minimum value

Returns:
double the minimum value

getMax

public double getMax()
Get the maximum value

Returns:
double the maximum value

getMean

public double getMean()
Get the mean value

Returns:
double the mean value

getPower

public double getPower()
Get the power value

Returns:
double the power value

getVariance

public double getVariance()
Get the variance value

Returns:
double the variance value

toString

public String toString()
Format as a String

Overrides:
toString in class Statistics
Returns:
String formatted String