lazy computation of similarities . similarities are looked up in cache and only computed if not computed before . concode_field_sep SymmetricTable<KEY,Double> similarities concode_elem_sep SimilarityClassifier<KEY> classifier concode_field_sep Collection<ID> expand concode_elem_sep Collection<ID> buildWindow
double function ( KEY arg0 , KEY arg1 ) { Double loc0 = similarities . get ( arg0 , arg1 ) ; if ( loc0 == null ) { loc0 = classifier . calculateCheckedSimilarity ( arg0 , arg1 ) ; similarities . put ( arg0 , arg1 , loc0 ) ; } return loc0 ; }