Class PartialCorrelationPdf

java.lang.Object
edu.cmu.tetrad.util.PartialCorrelationPdf
All Implemented Interfaces:
Function, TetradSerializable, Serializable

public class PartialCorrelationPdf extends Object implements Function, TetradSerializable
Frequency function of partial correlation r(12|34...k), assuming that the true partial correlation is equal to zero. Uses the equation (29.13.4) from Cramer's _Mathematical Methods of Statistics_.
Author:
josephramsey
See Also:
  • Constructor Details

    • PartialCorrelationPdf

      public PartialCorrelationPdf(int n, int k)
      Constructs a new zero partial correlation distribution function with the given values for n and k.
      Parameters:
      n - sample size
      k - the number of variables being compared.
  • Method Details

    • serializableInstance

      public static PartialCorrelationPdf serializableInstance()
      Generates a simple exemplar of this class to test serialization.
      Returns:
      the examplar.
    • valueAt

      public double valueAt(double x)
      Calculates the value of the function at the given domain point.
      Specified by:
      valueAt in interface Function
      Parameters:
      x - the domain point.
      Returns:
      the value of the function at x.
    • toString

      public String toString()
      Specified by:
      toString in interface Function
      Overrides:
      toString in class Object
      Returns:
      a description of the function.
    • getK

      public int getK()
      Returns:
      Ibid.