net.aerith.misao.util
Interface Statisticable

All Known Implementing Classes:
Buffer, MonoImage, Histogram, Array

public interface Statisticable

The Statisticable is an interface which has data accessor methods needed to calculate statistics of data.


Method Summary
 int getDataCount()
          Gets the number of data.
 double getValueAt(int index)
          Gets the value of data at the specified location.
 

Method Detail

getDataCount

public int getDataCount()
Gets the number of data.
Returns:
the number of data.

getValueAt

public double getValueAt(int index)
                  throws java.lang.IndexOutOfBoundsException
Gets the value of data at the specified location.
Parameters:
index - the location of the data.
Returns:
the value of data at the specified location.
Throws:
java.lang.IndexOutOfBoundsException - if specified location is out of the data buffer.