Class TrueDagTruePositiveDirectedPathNonancestor

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

public class TrueDagTruePositiveDirectedPathNonancestor extends Object implements Statistic
The bidirected true positives.
Version:
$Id: $Id
Author:
josephramsey
See Also:
  • Constructor Details

    • TrueDagTruePositiveDirectedPathNonancestor

      public TrueDagTruePositiveDirectedPathNonancestor()
      This class represents a statistic that calculates the true positives for arrows compared to the true DAG.
  • Method Details

    • getAbbreviation

      public String getAbbreviation()
      Retrieves the abbreviation for the statistic.
      Specified by:
      getAbbreviation in interface Statistic
      Returns:
      The abbreviation.
    • getDescription

      public String getDescription()
      Retrieves the description of the statistic.
      Specified by:
      getDescription in interface Statistic
      Returns:
      The description of the statistic.
    • getValue

      public double getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters)
      Computes the number of true positives for directed paths in the estimated graph that are consistent with the true graph, excluding cases where the estimated graph incorrectly identifies the reverse relationship.
      Specified by:
      getValue in interface Statistic
      Parameters:
      trueDag - The true directed acyclic graph (DAG) structure.
      trueGraph - The correct graph structure representing the true relationships between nodes.
      estGraph - The estimated graph structure to be evaluated.
      dataModel - A data model associated with the graphs (not directly used in this method).
      parameters - Parameters associated with the evaluation (not directly used in this method).
      Returns:
      The count of true positive directed paths in the estimated graph that match the true graph.
    • getNormValue

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