dot-withness: Identify data split that minimizes variance

.withnessR Documentation

Identify data split that minimizes variance

Description

This function evaluates a numeric vector to determine the split point that minimizes the within-group variance.

Usage

.withness(x)

Arguments

x

A numeric vector containing the data to be analyzed.

Details

This is a translation of c++ code from the Meshlab Virtual Goniometer plugin developed by the AMAAZE consortium

Value

A list containing the following components:

  • w: The minimum within-group sum of squares (variance) for the optimal split.

  • m: The value at the optimal split point in the sorted data.

  • mlow: The lower boundary value of the primary cluster around the split point.

  • mhigh: The upper boundary value of the primary cluster around the split point.

Examples

## Not run: 
data <- rnorm(100)
result <- Lithics3D:::.withness(data)
print(result)

## End(Not run)

cornelmpop/Lithics3D documentation built on Feb. 10, 2024, 11:54 p.m.