Class IdaMaximumSquaredDifference
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.IdaMaximumSquaredDifference
- All Implemented Interfaces:
Statistic,Serializable
IdaMaximumSquaredDifference is a statistic that calculates the "IDA Average Maximum Squared Difference" between a
true graph and an estimated graph. It implements the Statistic interface.
This is the average of the maximum squared difference between the true and estimated total effects for each pair of variables.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIdaMaximumSquaredDifference(SemIm semIm) Initializes a new instance of theIdaMaximumSquaredDifferenceclass. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the abbreviation for the statistic.Retrieves the description for this statistic.doublegetNormValue(double value) Returns a normalized value of the statistic.doublegetValue(Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the value of the statistic "IDA Average Maximum Squared Difference".
-
Constructor Details
-
IdaMaximumSquaredDifference
Initializes a new instance of theIdaMaximumSquaredDifferenceclass.- Parameters:
semIm- The true SEM IM.
-
-
Method Details
-
getAbbreviation
Retrieves the abbreviation for the statistic. This abbreviation will be printed at the top of each column.- Specified by:
getAbbreviationin interfaceStatistic- Returns:
- The abbreviation for the statistic.
-
getDescription
Retrieves the description for this statistic.- Specified by:
getDescriptionin interfaceStatistic- Returns:
- The description for this statistic.
-
getValue
Calculates the value of the statistic "IDA Average Maximum Squared Difference". -
getNormValue
public double getNormValue(double value) Returns a normalized value of the statistic.- Specified by:
getNormValuein interfaceStatistic- Parameters:
value- The value of the statistic.- Returns:
- The normalized value of the statistic.
-