reduce_kmeans {partition} | R Documentation |
Reduce selected variables to scaled means
Description
Reducers are functions that tell the partition algorithm how
to reduce the data. as_reducer()
is a helper function to create new
reducers to be used in partitioner
s. partitioner
s can be created with
as_partitioner()
.
reduce_kmeans()
is efficient in that it doesn't reduce until
the closest k
to the information threshold is found.
Usage
reduce_kmeans(.partition_step, search = c("binary", "linear"), n_hits = 4)
Arguments
.partition_step |
a |
search |
The search method. Binary search is generally more efficient but linear search can be faster in very low dimensions. |
n_hits |
In linear search method, the number of iterations that should be under the threshold before reducing; useful for preventing false positives. |
Value
a partition_step
object
See Also
Other reducers:
as_reducer()
,
reduce_first_component()
,
reduce_scaled_mean()
[Package partition version 0.2.1 Index]