powered by
calculate the affinity matrix from the diff matrix with 20 neighbors
affinityMatrix(Diff, K = 20, sigma = 0.5)
A diff matrix
The number of neighbors in consideration
A parameter to determine the scale
W The similarity matrix
# NOT RUN { data_list <- simu_data_gen() Diff <- dist2eu(Standard_Normalization(data_list[[1]]),Standard_Normalization(data_list[[1]])) simi <- affinityMatrix(Diff,20,0.5) # }
Run the code above in your browser using DataLab