Added unit tests for lean_simple_partition
This commit is contained in:
parent
002c0db3f9
commit
b8af977117
4 changed files with 28 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue