sort_pairs {CommKern} | R Documentation |

## Sort pairs

### Description

Description of the sort pairs function.

### Usage

```
sort_pairs(a, b)
```

### Arguments

`a` |
a vector of classifications |

`b` |
a vector of classifications |

### Details

A function to sort pairs of integers or factors and identify the pairs

### Value

a list of six objects used as the basis to calculate many cluster evaluation metrics, like NMI, ARI, and the Rand z-score.

levelsa list of the classes within each of the partitions a and b

n_ija vector containing counts of nodes within all possible classification pairs from partitions a and b

n_i.a vector of the same length as pair_nb, specifying the order of classifications in pair_nb from partition a

n_.ja vector of the same length as pair_nb, specifying the order of classifications in pair_nb from partition b

pair_aa vector containing counts of nodes within each class for partition a

pair_ba vector containing counts of nodes within each class for partition b

*CommKern*version 1.0.1 Index]