Record Class SweepResult.MarkovStats

java.lang.Object
java.lang.Record
edu.cmu.tetrad.algcomparison.sweep.SweepResult.MarkovStats
Record Components:
adInd - Anderson-Darling p for the implied independencies.
adDep - Anderson-Darling p for the implied dependencies.
ksInd - Kolmogorov-Smirnov p for the implied independencies.
ksDep - Kolmogorov-Smirnov p for the implied dependencies.
binomialInd - binomial p for the implied independencies.
binomialDep - binomial p for the implied dependencies.
fracDepInd - fraction of implied independencies judged dependent.
fracDepDep - fraction of implied dependencies judged dependent.
numTestsInd - number of implied-independence facts tested.
numTestsDep - number of implied-dependence facts tested.
Enclosing class:
SweepResult

public static record SweepResult.MarkovStats(double adInd, double adDep, double ksInd, double ksDep, double binomialInd, double binomialDep, double fracDepInd, double fracDepDep, int numTestsInd, int numTestsDep) extends Record
Markov-check statistics for a point graph, mirroring the statistics returned by MarkovCheck: for the implied independencies ("Ind") and implied dependencies ("Dep") respectively, the Anderson-Darling p-value for uniformity of the local p-values, the Kolmogorov-Smirnov p-value, the binomial p-value, the fraction of facts judged dependent, and the number of facts tested. For a well-specified model, adInd should not be small (the independence p-values should look uniform) and fracDepDep should be large (implied dependencies should be detected).
Version:
$Id: $Id
Author:
josephramsey
  • Constructor Summary

    Constructors
    Constructor
    Description
    MarkovStats(double adInd, double adDep, double ksInd, double ksDep, double binomialInd, double binomialDep, double fracDepInd, double fracDepDep, int numTestsInd, int numTestsDep)
    Creates an instance of a MarkovStats record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the adDep record component.
    double
    Returns the value of the adInd record component.
    double
    Returns the value of the binomialDep record component.
    double
    Returns the value of the binomialInd record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    double
    Returns the value of the fracDepDep record component.
    double
    Returns the value of the fracDepInd record component.
    final int
    Returns a hash code value for this object.
    double
    Returns the value of the ksDep record component.
    double
    Returns the value of the ksInd record component.
    int
    Returns the value of the numTestsDep record component.
    int
    Returns the value of the numTestsInd record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MarkovStats

      public MarkovStats(double adInd, double adDep, double ksInd, double ksDep, double binomialInd, double binomialDep, double fracDepInd, double fracDepDep, int numTestsInd, int numTestsDep)
      Creates an instance of a MarkovStats record class.
      Parameters:
      adInd - the value for the adInd record component
      adDep - the value for the adDep record component
      ksInd - the value for the ksInd record component
      ksDep - the value for the ksDep record component
      binomialInd - the value for the binomialInd record component
      binomialDep - the value for the binomialDep record component
      fracDepInd - the value for the fracDepInd record component
      fracDepDep - the value for the fracDepDep record component
      numTestsInd - the value for the numTestsInd record component
      numTestsDep - the value for the numTestsDep record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • adInd

      public double adInd()
      Returns the value of the adInd record component.
      Returns:
      the value of the adInd record component
    • adDep

      public double adDep()
      Returns the value of the adDep record component.
      Returns:
      the value of the adDep record component
    • ksInd

      public double ksInd()
      Returns the value of the ksInd record component.
      Returns:
      the value of the ksInd record component
    • ksDep

      public double ksDep()
      Returns the value of the ksDep record component.
      Returns:
      the value of the ksDep record component
    • binomialInd

      public double binomialInd()
      Returns the value of the binomialInd record component.
      Returns:
      the value of the binomialInd record component
    • binomialDep

      public double binomialDep()
      Returns the value of the binomialDep record component.
      Returns:
      the value of the binomialDep record component
    • fracDepInd

      public double fracDepInd()
      Returns the value of the fracDepInd record component.
      Returns:
      the value of the fracDepInd record component
    • fracDepDep

      public double fracDepDep()
      Returns the value of the fracDepDep record component.
      Returns:
      the value of the fracDepDep record component
    • numTestsInd

      public int numTestsInd()
      Returns the value of the numTestsInd record component.
      Returns:
      the value of the numTestsInd record component
    • numTestsDep

      public int numTestsDep()
      Returns the value of the numTestsDep record component.
      Returns:
      the value of the numTestsDep record component