}
public Cosine(int k) {
super(k);
}
public Cosine() {
<BUG>super(3);
}
public double similarity(int[] profile1, int[] profile2) {
return dotProduct(profile1, profile2) / (norm(profile1) * norm(profile2));</BUG>
}

}
public Cosine(int k) {
super(k);
}
public Cosine() {
super();
}
public double similarity(String s1, String s2) {
KShingling ks = new KShingling(k);
int[] profile1 = ks.getArrayProfile(s1);
int[] profile2 = ks.getArrayProfile(s2);
return dotProduct(profile1, profile2) / (norm(profile1) * norm(profile2));
}
