R: L-p metric conversion

mutilsDistanceMetric {ifultools} | R Documentation

## 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)

### Arguments

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

### Value

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

### See Also

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

### Examples

    mutilsDistanceMetric(Inf)

[Package ifultools version 2.0-4 Index]