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

diffuStats documentation built on Feb. 22, 2021, 10 a.m.