Class Statistics

java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.Statistics

public class Statistics extends Object
A list of statistics and their utility weights.
Author:
josephramsey
  • Constructor Details

    • Statistics

      public Statistics()
  • Method Details

    • add

      public void add(Statistic statistic)
      Adds a statistic.
      Parameters:
      statistic - The statistic to add.
    • setWeight

      public void setWeight(String abbrebiation, double weight)
      Sets the utility weight of the statistic by the given name.
      Parameters:
      abbrebiation - The abbreviation set in the statistic.
      weight - The utility weight for that statistic.
    • getStatistics

      public List<Statistic> getStatistics()
      Return the list of statistics.
      Returns:
      A copy of this list, in the order added.
    • getWeight

      public double getWeight(Statistic statistic)
      The utility weight for the statistic.
      Parameters:
      statistic - The statistic.
      Returns:
      The utility weight for it.
    • size

      public int size()
      The number of statistics.
      Returns:
      This number.