total_linkage: Calculates the Total linkage between two groups

Description Usage Arguments Details Value See Also

View source: R/distance.R

Description

Total linkage shows the distance between two groups. Will result in information about the current group as well as the opposing group.

Usage

1
2
total_linkage(matrix_1, matrix_2, distance = "euclidean",
  name_1 = NULL, name_2 = NULL, method = "all")

Arguments

matrix_1

Data for cluster 1. Cell by reduced dimension components

matrix_2

Data for cluster 2 . Cell by reduced dimension components

distance

Point to point distance method to use. e.g. 'euclidean'.

name_1

name of matrix_1 group

name_2

name of matrix_2 group

method

Cells in matrix_1 to test. "all" or "one". This is primarily done to speed up the calculation process.

Details

Total linkage measures distance to every point in the dataset from every point in one group of the dataset. It is possible to change the method to only measure the linkage for one cell instead of all the cells. This could be chosen in order to speed up the calculation process. If "one" is chosen then only one cell in group 1 will be used. This cell is chosen because it is furthest away from the mean of group 2.

Value

Dataframe where column 1 is group label and column 2 is distance information

See Also

Other total_distance: PlotTotalDistance, total_distance


sbrn3/disscat documentation built on Dec. 12, 2019, 7:54 a.m.