Learn R Programming

roots (version 1.0)

calculateVariableSigmas: Calculates sigmas for a distance matrix

Description

Calculates sigmas for a distance matrix

Usage

calculateVariableSigmas(d, knn)

Arguments

d

Square distance matrix with 0 diagonal

knn

Number of nearest neighbours to use for calculation

Value

Returns a vector of sigmas

Details

Calculates sigmas for a distance matrix Using Laleh Hagherverdi's method

Examples

Run this code
# NOT RUN {
sigmas <- calculateVariableSigmas(dist, 5)
# }

Run the code above in your browser using DataLab