Package edu.cmu.tetrad.search.kernel
Class KernelUtils
java.lang.Object
edu.cmu.tetrad.search.kernel.KernelUtils
Various kernel utilities
- Author:
- Robert Tillman
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MatrixConstructs the centralized Gram matrix for a given vector valued sample.static MatrixConstructs Gram matrix for a given vector valued sample.static MatrixconstructH(int m) Constructs the projection matrix on 1/mstatic MatrixincompleteCholeskyGramMatrix(List<Kernel> kernels, DataSet dataset, List<Node> nodes, double precision) Approximates Gram matrix using incomplete Cholesky factorization
-
Constructor Details
-
KernelUtils
public KernelUtils()
-
-
Method Details
-
constructGramMatrix
Constructs Gram matrix for a given vector valued sample. The set of kernels corresponds to the variables in the set. The output matrix is the tensor product of Gram matrices for each variable.- Parameters:
kernels- the kernels for each variabledataset- the dataset containing each variablenodes- the variables to construct the Gram matrix for
-
constructCentralizedGramMatrix
public static Matrix constructCentralizedGramMatrix(List<Kernel> kernels, DataSet dataset, List<Node> nodes) Constructs the centralized Gram matrix for a given vector valued sample. The set of kernels corresponds to the variables in the set. The output matrix is the tensor product of Gram matrices for each variable.- Parameters:
kernels- the kernels for each variabledataset- the dataset containing each variablenodes- the variables to construct the Gram matrix for
-
constructH
Constructs the projection matrix on 1/m- Parameters:
m- the sample size
-
incompleteCholeskyGramMatrix
public static Matrix incompleteCholeskyGramMatrix(List<Kernel> kernels, DataSet dataset, List<Node> nodes, double precision) Approximates Gram matrix using incomplete Cholesky factorization- Parameters:
kernels- the kernels for each variabledataset- the dataset containing each variablenodes- the variables to construct the Gram matrix for
-