}
public static AffinityMatrixCreator createDefaultAffinityMatrixCreator() {
SimilarityFunction simFunc = new CosineSimilarity();
AffinityMatrixCreator creator =
new NearestNeighborAffinityMatrixCreator();
creator.setParams(10);
creator.setFunctions(simFunc, simFunc);
return creator;
}