Skip to content

Commit

Permalink
Fix a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanyueLi committed Sep 16, 2024
1 parent c7fa950 commit 98a0461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion languages/c/SpectralEntropy.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ float calculate_unweighted_entropy_similarity(
similarity = similarity / 2;
if (similarity < 0) {
similarity = 0;
}elif(similarity > 1) {
}else if(similarity > 1) {
similarity = 1;
}
return similarity;
Expand Down

0 comments on commit 98a0461

Please sign in to comment.