org.forester.surfacing
Class DomainLengths

java.lang.Object
  extended by org.forester.surfacing.DomainLengths

public class DomainLengths
extends Object


Constructor Summary
DomainLengths(DomainId domain_id)
           
 
Method Summary
 void addLength(Species species, int domain_length)
           
 DescriptiveStatistics calculateMeanBasedStatistics()
          Returns descriptive statistics based on the arithmetic means for each species.
 double calculateZScoreForSpecies(Species species)
          Note.
 DomainId getDomainId()
           
 DescriptiveStatistics getLengthStatistic(Species species)
           
 List<DescriptiveStatistics> getLengthStatisticsList()
           
 List<Species> getMeanBasedOutlierSpecies(double z_score_limit)
           
 List<Species> getSpeciesList()
           
 boolean isHasLengthStatistic(Species species)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainLengths

public DomainLengths(DomainId domain_id)
Method Detail

addLength

public void addLength(Species species,
                      int domain_length)

calculateMeanBasedStatistics

public DescriptiveStatistics calculateMeanBasedStatistics()
Returns descriptive statistics based on the arithmetic means for each species.

Returns:

calculateZScoreForSpecies

public double calculateZScoreForSpecies(Species species)
Note. This is not technically a Z-score since the distribution of means is unknown (and not normal).

Parameters:
species -
Returns:

getDomainId

public DomainId getDomainId()

getLengthStatistic

public DescriptiveStatistics getLengthStatistic(Species species)

getLengthStatisticsList

public List<DescriptiveStatistics> getLengthStatisticsList()

getMeanBasedOutlierSpecies

public List<Species> getMeanBasedOutlierSpecies(double z_score_limit)

getSpeciesList

public List<Species> getSpeciesList()

isHasLengthStatistic

public boolean isHasLengthStatistic(Species species)