Class Statistics
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.Statistics
- All Implemented Interfaces:
TetradSerializable
,Serializable
A list of statistics and their utility weights.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a statistic.Return the list of statistics.double
The utility weight for the statistic.void
Sets the utility weight of the statistic by the given name.int
size()
The number of statistics.
-
Constructor Details
-
Statistics
public Statistics()Constructor for Statistics.
-
-
Method Details
-
add
Adds a statistic.- Parameters:
statistic
- The statistic to add.
-
setWeight
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
-
getWeight
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.
-