Skip to content

Commit 58f4bfe

Browse files
improve performance of sits_sample_imbalance
1 parent b10edc6 commit 58f4bfe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/sits_sample_functions.R

+3-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ sits_reduce_imbalance <- function(samples,
146146
samples_cls,
147147
grid_xdim = grid_dim,
148148
grid_ydim = grid_dim,
149-
rlen = 50
149+
distance = "euclidean",
150+
rlen = 10,
151+
mode = "pbatch"
150152
)
151153
# select samples on the SOM grid using the neurons
152154
samples_under <- som_map[["data"]] |>

0 commit comments

Comments
 (0)