Class IdaAverageSquaredDistance
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.IdaAverageSquaredDistance
- All Implemented Interfaces:
Statistic, Serializable
-
Constructor Summary
Constructors -
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 trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the value of the IDA Average Squared Distance statistic.
-
Constructor Details
-
IdaAverageSquaredDistance
The IDA Average Squared Distance.The IDA Average Squared Distance is a statistic that measures the average squared distance between the true and estimated total effects for each pair of variables in a Structural Equation Model (SEM).
- Parameters:
semIm- The true SEM IM. This statistic can only be used if the true SEM IM is known.
-
-
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
public double getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the value of the IDA Average Squared Distance statistic. Assumes the true SEM IM has been passed in through the constructor.- Specified by:
getValuein interfaceStatistic- Parameters:
trueDag- The true DAG.trueGraph- The true graph (DAG, CPDAG, PAG_of_the_true_DAG).estGraph- The estimated graph (same type).dataModel- The data model.parameters- The parameters- Returns:
- The calculated value of the IDA Average Squared Distance statistic.
-
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.
-