org.expasy.jpl.commons.collection.stat
Class StatisticalSerieDiscreteDataSet

java.lang.Object
  extended by org.expasy.jpl.commons.collection.stat.StatisticalSerieDiscreteDataSet
All Implemented Interfaces:
StatisticalSerie<Integer>

public final class StatisticalSerieDiscreteDataSet
extends Object
implements StatisticalSerie<Integer>

A StatisticalSerieDiscreteVar contains only integer values.

Version:
1.0
Author:
nikitin

Method Summary
 int getFrequency(Integer value)
           
 double getRelativeFrequency(Integer value)
           
 int getSampleSize()
           
 List<Integer> getSampleValues()
           
 List<Integer> getValues()
           
 Integer getXAt(int index)
           
 void loadDataInSerie(Number value)
          load a value in the statistical serie
 void loadSerie(List<? extends Number> values)
          load values in the statistical serie
static StatisticalSerieDiscreteDataSet newInstance()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

newInstance

public static StatisticalSerieDiscreteDataSet newInstance()

getSampleSize

public int getSampleSize()
Specified by:
getSampleSize in interface StatisticalSerie<Integer>
Returns:
the number of observations

getSampleValues

public List<Integer> getSampleValues()
Specified by:
getSampleValues in interface StatisticalSerie<Integer>
Returns:
all the values of the sample

loadSerie

public void loadSerie(List<? extends Number> values)
Description copied from interface: StatisticalSerie
load values in the statistical serie

Specified by:
loadSerie in interface StatisticalSerie<Integer>

loadDataInSerie

public void loadDataInSerie(Number value)
Description copied from interface: StatisticalSerie
load a value in the statistical serie

Specified by:
loadDataInSerie in interface StatisticalSerie<Integer>

getFrequency

public final int getFrequency(Integer value)
Specified by:
getFrequency in interface StatisticalSerie<Integer>
Returns:
the frequency of the value

getRelativeFrequency

public final double getRelativeFrequency(Integer value)
Specified by:
getRelativeFrequency in interface StatisticalSerie<Integer>
Returns:
the relative frequency of the value

getValues

public List<Integer> getValues()
Specified by:
getValues in interface StatisticalSerie<Integer>
Returns:
all the values

getXAt

public final Integer getXAt(int index)

toString

public String toString()
Overrides:
toString in class Object


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