Learn R Programming

ifultools (version 2.0-26)

mutilsDistanceMetric: L-p metric conversion

Description

Converts a numeric value (p) representing an L-p metric to an enumerated index appropriate for Insightful's MUTILS C library, used by many functions in the FRACTAL package involving itCall calls.

Usage

mutilsDistanceMetric(metric)

Value

an integer representing the equivalent MUTILS enumerated type for the specified metric.

Arguments

metric

an integer (p) representing an L-p Euclidean distance metric. Supported values are 1, 2 and Inf.

See Also

mutilsFilterType, mutilsFilterTypeContinuous, mutilsSDF, mutilsTransformPeakType, mutilsTransformType, mutilsWSShrinkageFunction, mutilsWSThresholdFunction.

Examples

Run this code
mutilsDistanceMetric(Inf)

Run the code above in your browser using DataLab