Calculate the affinity matrix based on the similarity matrix
calculateAffinityMatrix(similarityMatrix, neighboorsNumber = 2)
Matrix of similarity between all points in the time series
Number of neighbors to consider affinity between nodes
Affinity matrix based on the similarity matrix
Calculate the affinity matrix based on the similarity matrix If the number of neighbors is equal to or greater than the similarity matrix then the similarity and affinity matrix are equal