Class BinningResult

java.lang.Object
org.aavso.tools.vstar.util.stats.BinningResult

public class BinningResult extends Object
The result of a binning operation including mean observations (with averages and confidence intervals per bin), magnitude bins, and analysis of variance results (F-test, p-value).
  • Constructor Details

    • BinningResult

      public BinningResult(SeriesType series, int sourceObsCount, List<ValidObservation> meanObservations, List<double[]> magnitudeBins)
      Constructor
      Parameters:
      series - The series type of the observations.
      sourceObsCount - The number of source observations.
      meanObservations - A list of mean observations.
      magnitudeBins - The corresponding magnitude bins that gave rise to the binned mean observations.
  • Method Details

    • getSeries

      public SeriesType getSeries()
      Returns:
      the series
    • getMeanObservations

      public List<ValidObservation> getMeanObservations()
      Returns:
      the meanObservations
    • getMagnitudeBins

      public List<double[]> getMagnitudeBins()
      Returns:
      the magnitudeBins
    • getFValue

      public double getFValue()
      Returns:
      the fValue
    • getPValue

      public double getPValue()
      Returns:
      the pValue
    • getBetweenGroupDF

      public int getBetweenGroupDF()
      Returns the between-group degrees of freedom for the F-test result. This is defined as: df(b) = K-1 where K is the number of groups.
      Returns:
      The degrees of freedom.
    • getWithinGroupDF

      public int getWithinGroupDF()
      Returns the within-group degrees of freedom for the F-test result. This is defined as: df(w) = (N1-1)+(N2-1)+...+(Nm-1) where N1..Nm are the number of values within each group. This should be k (the number of groups, i.e. bins) less than N, the total number of data-points (observations) used for binning.
      Returns:
      The degrees of freedom.
    • hasValidAnovaValues

      public boolean hasValidAnovaValues()
      Does this binning result have a sane F-test and p-values? Insufficient data is one reason why the values may not be valid.
      Returns:
      Whether or not the ANOVA values are valid.
    • createAnovaText

      public String createAnovaText()