Class ProportionSemidirectedPathsNotReversedEst

java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.ProportionSemidirectedPathsNotReversedEst
All Implemented Interfaces:
Statistic, Serializable

public class ProportionSemidirectedPathsNotReversedEst extends Object implements Statistic
Proportion of semi(X, Y) in estimated graph for which there is no semi(Y, X) in true graph.
Version:
$Id: $Id
Author:
josephramsey
See Also:
  • Constructor Details

    • ProportionSemidirectedPathsNotReversedEst

      public ProportionSemidirectedPathsNotReversedEst()
      Constructs a new instance of the statistic.
  • Method Details

    • getAbbreviation

      public String getAbbreviation()
      Retrieves the abbreviation for the statistic. This abbreviation will be printed at the top of each column.
      Specified by:
      getAbbreviation in interface Statistic
      Returns:
      The abbreviation for the statistic.
    • getDescription

      public String getDescription()
      Retrieves the description of the statistic: Proportion of semi(X, Y) in estimated graph for which there is no semi(Y, X) in true graph.
      Specified by:
      getDescription in interface Statistic
      Returns:
      The description of the statistic.
    • getValue

      public double getValue(Graph trueGraph, Graph estGraph, DataModel dataModel)
      Calculates the proportion of semi(X, Y) in the estimated graph for which there is no semi(Y, X) in the true graph.
      Specified by:
      getValue in interface Statistic
      Parameters:
      trueGraph - The true graph (DAG, CPDAG, PAG_of_the_true_DAG).
      estGraph - The estimated graph (same type).
      dataModel - The data model.
      Returns:
      The proportion of semi(X, Y) in the estimated graph for which there is no semi(Y, X) in the true graph.
    • getNormValue

      public double getNormValue(double value)
      Retrieves the normalized value of the given statistic.
      Specified by:
      getNormValue in interface Statistic
      Parameters:
      value - The value of the statistic.
      Returns:
      The normalized value of the statistic.