Class Statistics
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.Statistics
A list of statistics and their utility weights.
- Author:
- jdramsey
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a statistic.Return the list of statistics.doubleThe utility weight for the statistic.voidSets the utility weight of the statistic by the given name.intsize()The number of statistics.
- 
Constructor Details- 
Statisticspublic Statistics()
 
- 
- 
Method Details- 
addAdds a statistic.- Parameters:
- statistic- The statistic to add.
 
- 
setWeightSets 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.
 
- 
getStatisticsReturn the list of statistics.- Returns:
- A copy of this list, in the order added.
 
- 
getWeightThe utility weight for the statistic.- Parameters:
- statistic- The statistic.
- Returns:
- The utility weight for it.
 
- 
sizepublic int size()The number of statistics.- Returns:
- This number.
 
 
-