Package org.forester.surfacing
Class DomainLengths
- java.lang.Object
-
- org.forester.surfacing.DomainLengths
-
public class DomainLengths extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DomainLengths(java.lang.String domain_id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLength(Species species, int domain_length)DescriptiveStatisticscalculateMeanBasedStatistics()Returns descriptive statistics based on the arithmetic means for each species.doublecalculateZScoreForSpecies(Species species)Note.java.lang.StringgetDomainId()DescriptiveStatisticsgetLengthStatistic(Species species)java.util.List<DescriptiveStatistics>getLengthStatisticsList()java.util.List<Species>getMeanBasedOutlierSpecies(double z_score_limit)java.util.List<Species>getSpeciesList()booleanisHasLengthStatistic(Species species)
-
-
-
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 java.lang.String getDomainId()
-
getLengthStatistic
public DescriptiveStatistics getLengthStatistic(Species species)
-
getLengthStatisticsList
public java.util.List<DescriptiveStatistics> getLengthStatisticsList()
-
getMeanBasedOutlierSpecies
public java.util.List<Species> getMeanBasedOutlierSpecies(double z_score_limit)
-
getSpeciesList
public java.util.List<Species> getSpeciesList()
-
isHasLengthStatistic
public boolean isHasLengthStatistic(Species species)
-
-