Learn R Programming

Spectrum (version 1.1)

CNN_kernel: CNN_kernel: fast adaptive density-aware kernel

Description

CNN_kernel: fast adaptive density-aware kernel

Usage

CNN_kernel(mat, NN = 3, NN2 = 7)

Arguments

mat

Matrix: matrix should have samples as columns and rows as features

NN

Numerical value: the number of nearest neighbours to use when calculating local sigma

NN2

Numerical value: the number of nearest neighbours to use when calculating common nearest neighbours

Value

A kernel matrix

Examples

Run this code
# NOT RUN {
CNN_kern <- CNN_kernel(blobs[,1:50])
# }

Run the code above in your browser using DataLab