benchmark_partition: Benchmark specific partition functions

Description Usage Arguments Value

View source: R/benchmarks.R

Description

Benchmark partition() and kmeans_icc() using multiple sample sizes and methods

Usage

1
2
3
4
5
benchmark_partition(n = c(10, 100, 1000), pct.var = 0.8, method = "ICC",
  dist.type = "p", unit = "ms", times = 100L)

benchmark_kmeans(n = c(10, 100, 1000), threshold.icc = 0.4, ...,
  unit = "ms", times = 100L)

Arguments

n

a vector of sample sizes to simulate for benchmarking. Default is to test 10, 100, and 1000.

pct.var

see partition::partition

method

see partition::partition

dist.type

see partition::partition

unit

what unit of time? Default is "ms" for milliseconds. See microbenchmark::microbenchmark

times

number of benchmarks to run in microbenchmark. Default is 100.

threshold.icc

see partition::kmeans_icc

Value

a data.frame


malcolmbarrett/partition.benchmark documentation built on May 20, 2019, 8:02 p.m.