findK: Find number of centroids

Description Usage Arguments Value

View source: R/findK.R

Description

findK will loop through a range of Ks and will plot the cost

Usage

1
findK(X, nstart = 25, iter.max = 10, n_K = 15)

Arguments

X

A matrix where each column is a vectorized image

nstart

passed to stats::kmeans()

iter.max

passed to stats::kmeans()

n_K

max number of clusters

Value

Plots K versus cost.


UW-Upwelling-Project/imageryML documentation built on Dec. 18, 2021, 6:11 p.m.