org.expasy.jpl.commons.collection.stat
Interface StatisticalSerie<T extends Number>

Type Parameters:
T - the data type.
All Known Implementing Classes:
StatisticalSerieDiscreteDataSet

public interface StatisticalSerie<T extends Number>

The StatisticalSerie interface should be implemented by any 1-Dimension statistical serie concerning samples with one measured variable.

Version:
1.0
Author:
nikitin

Method Summary
 int getFrequency(T value)
           
 double getRelativeFrequency(T value)
           
 int getSampleSize()
           
 List<? extends Number> getSampleValues()
           
 List<T> getValues()
           
 void loadDataInSerie(Number value)
          load a value in the statistical serie
 void loadSerie(List<? extends Number> values)
          load values in the statistical serie
 

Method Detail

getSampleSize

int getSampleSize()
Returns:
the number of observations

loadSerie

void loadSerie(List<? extends Number> values)
load values in the statistical serie


loadDataInSerie

void loadDataInSerie(Number value)
load a value in the statistical serie


getSampleValues

List<? extends Number> getSampleValues()
Returns:
all the values of the sample

getValues

List<T> getValues()
Returns:
all the values

getFrequency

int getFrequency(T value)
Returns:
the frequency of the value

getRelativeFrequency

double getRelativeFrequency(T value)
Returns:
the relative frequency of the value


Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.