replaced mean to median in lpp.affinity_matrix