Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hkctkuy committed Feb 2, 2024
1 parent 4457e95 commit 227d4fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion casr/src/bin/casr-cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ fn calc_avg_sil(dir: &Path, jobs: usize) -> Result<f64> {
if size == 0 {
bail!("{} valid reports, nothing to calculate...", size);

Check warning on line 538 in casr/src/bin/casr-cluster.rs

View check run for this annotation

Codecov / codecov/patch

casr/src/bin/casr-cluster.rs#L538

Added line #L538 was not covered by tests
}
let avg_sil = avg_sil_ceof(&clusters, size);
let avg_sil = avg_sil_coef(&clusters, size);
Ok(avg_sil)
}

Expand Down
2 changes: 1 addition & 1 deletion libcasr/src/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ fn sil_coef(num: usize, i: usize, clusters: &[Vec<Stacktrace>]) -> f64 {
/// # Return value
///
/// Average silhouette coefficient
pub fn avg_sil_ceof(clusters: &[Vec<Stacktrace>], size: usize) -> f64 {
pub fn avg_sil_coef(clusters: &[Vec<Stacktrace>], size: usize) -> f64 {
// Init sil sum
let mut sum = 0f64;
// Calculate silhouette coefficient for each casrep
Expand Down

0 comments on commit 227d4fd

Please sign in to comment.