case LIN:
return new LinSimilarity();
case KL_DIVERGENCE:
return new KLDivergence();
case KENDALLS_TAU:
return new KendallsTau();
case TANIMOTO_COEFFICIENT:
return new TanimotoCoefficient();
}
throw new IllegalArgumentException("Unhandled SimType: " +
similarityType);