is_kernel: Check if a matrix is a valid kernel

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

This function checks whether the eigenvalues are non-negative

Usage

1
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

1
2
3
4

b2slab/diffusion documentation built on March 6, 2021, 2:38 a.m.