Class BidirectedLatentPrecision

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

public class BidirectedLatentPrecision extends Object implements Statistic
The BidirectedLatentPrecision class implements the Statistic interface and represents a statistic that calculates the percentage of bidirected edges in an estimated graph for which a latent confounder exists in the true graph.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    The BidirectedLatentPrecision class implements the Statistic interface and represents a statistic that calculates the percentage of bidirected edges in an estimated graph for which a latent confounder exists in the true graph.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the abbreviation for the statistic.
    Returns a short description of the statistic, which is the percentage of bidirected edges for which a latent confounder exists.
    double
    getNormValue(double value)
    Calculates the normalized value of a given statistic value.
    double
    getValue(Graph trueGraph, Graph estGraph, DataModel dataModel)
    Calculates the percentage of correctly identified bidirected edges in an estimated graph for which a latent confounder exists in the true graph.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BidirectedLatentPrecision

      public BidirectedLatentPrecision()
      The BidirectedLatentPrecision class implements the Statistic interface and represents a statistic that calculates the percentage of bidirected edges in an estimated graph for which a latent confounder exists in the true graph.
  • Method Details

    • getAbbreviation

      public String getAbbreviation()
      Returns the abbreviation for the statistic. The abbreviation is a short string that represents the statistic. For this statistic, the abbreviation is "<->-Lat-Prec".
      Specified by:
      getAbbreviation in interface Statistic
      Returns:
      The abbreviation for the statistic.
    • getDescription

      public String getDescription()
      Returns a short description of the statistic, which is the percentage of bidirected edges for which a latent confounder exists.
      Specified by:
      getDescription in interface Statistic
      Returns:
      The description of the statistic.
    • getValue

      public double getValue(Graph trueGraph, Graph estGraph, DataModel dataModel)
      Calculates the percentage of correctly identified bidirected edges in an estimated graph for which a latent confounder exists 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 percentage of correctly identified bidirected edges.
    • getNormValue

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