Class NumVisibleEdgeEst

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

public class NumVisibleEdgeEst extends Object implements Statistic
NumVisibleEdgeEst is a class that implements the Statistic interface. It calculates the number of X-->Y edges that are visible in the estimated PAG.
See Also:
  • Constructor Details

    • NumVisibleEdgeEst

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

    • getAbbreviation

      public String getAbbreviation()
      Returns the abbreviation for the statistic. This 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()
      Returns a short one-line description of this statistic. This will be printed at the beginning of the report.
      Specified by:
      getDescription in interface Statistic
      Returns:
      The description of the statistic.
    • getValue

      public double getValue(Graph trueGraph, Graph estGraph, DataModel dataModel)
      Returns the number of X-->Y edges that are visible in the estimated PAG.
      Specified by:
      getValue in interface Statistic
      Parameters:
      trueGraph - The true graph.
      estGraph - The estimated graph.
      dataModel - The data model.
      Returns:
      The number of X-->Y edges that are visible in the estimated PAG.
    • getNormValue

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