within_class_scatter: Calculate Within-Class Scatter Matrix (via C++)

View source: R/scatter.R

within_class_scatterR Documentation

Calculate Within-Class Scatter Matrix (via C++)

Description

Computes the within-class scatter matrix using a C++ function withinSScpp.

Usage

within_class_scatter(X, Y)

Arguments

X

A numeric matrix (n x d).

Y

A factor or numeric vector of length n.

Value

A numeric (d x d) within-class scatter matrix.


bbuchsbaum/discursive documentation built on April 14, 2025, 4:57 p.m.