# circ_dist: Distance Matrix of Circular Variables In monoClust: Perform Monothetic Clustering with Extensions to Circular Data

## Description

Calculates the distance matrix of observations with circular variables using an adapted version of Gower's distance. This distance should be compatible with the Gower's distance for other variable types.

## Usage

 1 circ_dist(frame) 

## Arguments

 frame A data frame with all columns are circular measured in degrees.

## Details

The distance between two observations i and j of a circular variable q is suggested to be

(y_{iq}, y_{jq}) = \frac{180 - |180 - |y_{iq} - y_{jq}||}{180}.

## Value

Object of class "dist".

## References

• Tran, T. V. (2019). Chapter 3. Monothetic Cluster Analysis with Extensions to Circular and Functional Data. Montana State University - Bozeman.

## See Also

stats::dist()

## Examples

 1 2 3 4 # Make a sample data set of 20 observations with 2 circular variables data <- data.frame(var1 = sample.int(359, 20), var2 = sample.int(359, 20)) circ_dist(data) 

monoClust documentation built on Feb. 15, 2021, 5:07 p.m.