SpearmanCorrelationSimilarity implements UserSimilarity { @Override public void refresh(Collection<Refreshable> alreadyRefreshed) { alreadyRefreshed = RefreshHelper.buildRefreshed(alreadyRefreshed); RefreshHelper.maybeRefresh(alreadyRefreshed, dataModel); } SpearmanCorrelationSimilarity(DataModel dataModel); @Override double userSimilarity(long userID1, long userID2); @Override void setPreferenceInferrer(PreferenceInferrer inferrer); @Override void refresh(Collection<Refreshable> alreadyRefreshed);  }
@Test public void testRefresh() { new SpearmanCorrelationSimilarity(getDataModel()).refresh(null); }