is_kernel {diffuStats}R Documentation

Check if a matrix is a valid kernel

Description

This function checks whether the eigenvalues are non-negative

Usage

is_kernel(x, tol = 1e-08)

Arguments

x

numeric, symmetric matrix to be checked

tol

numeric, tolerance for zero eigenvalues

Value

scores in desired format

Examples

data(graph_toy)
K <- regularisedLaplacianKernel(graph_toy)
is_kernel(K)
is_kernel(K - 1)


[Package diffuStats version 1.10.2 Index]