partition (version 0.1.0)

reduce_kmeans: 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 partitioners. partitioners 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 partition_step object

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