Convert a linkage matrix generated by MATLAB(TM) to a new
linkage matrix compatible with this module.
The conversion does two things:
- the indices are converted from
- a fourth column
Z[:,3] is added where
Z[i,3] represents the
number of original observations (leaves) in the non-singleton
This function is useful when loading in linkages from legacy data
files generated by MATLAB.
- Z : ndarray
A linkage matrix generated by MATLAB(TM).
- ZS : ndarray
A linkage matrix compatible with