"`Z[i]` will tell us which clusters were merged in the i-th iteration. \n",
"\n",
"```python\n",
">>> Z[0] with an output\n",
"array([ 52. , 53. , 0.04151, 2. ])\n",
"```\n",
"\n",
"In its first iteration the linkage algorithm decided to merge the two clusters (original samples here) with indices 52 and 53, as they only had a distance of 0.04151. This created a cluster with a total of 2 samples. We can see that each row of the resulting array has the format [idx1, idx2, dist, sample_count]."
`Z[i]` will tell us which clusters were merged in the i-th iteration.
```python
>>>Z[0]withanoutput
array([52.,53.,0.04151,2.])
```
In its first iteration the linkage algorithm decided to merge the two clusters (original samples here) with indices 52 and 53, as they only had a distance of 0.04151. This created a cluster with a total of 2 samples. We can see that each row of the resulting array has the format [idx1, idx2, dist, sample_count].
%% Cell type:code id: tags:
```
# Calculate Cophenetic Correlation Coefficient for the different linkage types