Package edu.cmu.tetrad.util
Class PartialCorrelationPdf
java.lang.Object
edu.cmu.tetrad.util.PartialCorrelationPdf
- All Implemented Interfaces:
Function,TetradSerializable,Serializable
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 Summary
ConstructorsConstructorDescriptionPartialCorrelationPdf(int n, int k) Constructs a new zero partial correlation distribution function with the given values for n and k. -
Method Summary
Modifier and TypeMethodDescriptionintgetK()static PartialCorrelationPdfGenerates a simple exemplar of this class to test serialization.toString()doublevalueAt(double x) Calculates the value of the function at the given domain point.
-
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 sizek- the number of variables being compared.
-
-
Method Details
-
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. -
toString
-
getK
public int getK()- Returns:
- Ibid.
-