Added unit tests for lean_simple_partition

This commit is contained in:
Waldir Leoncio 2019-12-16 16:37:25 +01:00
parent 002c0db3f9
commit b8af977117
4 changed files with 28 additions and 1 deletions

View file

@ -55,6 +55,7 @@ learn_simple_partition <- function(ordered_points, fii) {
part[1:best_i] <- 1
part[(best_i + 1):best_j] <- 2
part[(best_j + 1):length(part)] <- 3
})
}
)
return(part)
}