Learn R Programming

whiboclustering (version 0.1.2)

wc_eval_within_sum_of_squares: Calculate within (Cluster) sum of squares

Description

Calculate within (Cluster) sum of squares

Usage

wc_eval_within_sum_of_squares(data, centroids, assignment)

Arguments

data

A dataset for which within sum of squared should be calculated.

centroids

A data frame of cluster representatives.

assignment

Vector of assignments.

Value

A vector of number which shows within (cluster) sum of squares.