# mdAgglomerative.details: Matrix distance by distance and approach type. In LearnClust: Learning Hierarchical Clustering Algorithms

## Description

To explain how to calculate the matrix distance by using `distance` and `approach` type.

## Usage

 `1` ```mdAgglomerative.details(list, distance, approach) ```

## Arguments

 `list` is a clusters list. `distance` is a literal. The distance type to be used. `approach` is a literal. The approach type to be used.

## Details

This function is part of the hierarchical clusterization method. The function calculates the matrix distance by using the distance and approach type given.

The `list` parameter will be a list with the clusters as rows and columns.

The function avoids distances equal 0 and undefined clusters.

## Value

A matrix distance. Explanation.

## Author(s)

Roberto Alcántara roberto.alcantara@edu.uah.es

 ```1 2 3 4 5 6 7``` ```data <- c(1,2,1,3,1,4,1,5,1,6) clusters <- toList(data) mdAgglomerative.details(clusters, 'EUC', 'MAX') mdAgglomerative.details(clusters, 'CHE', 'AVG') ```