pairwise_within_scatter: Calculate Pairwise Within-Class and Between-Class Scatter for...

View source: R/scatter.R

pairwise_within_scatterR Documentation

Calculate Pairwise Within-Class and Between-Class Scatter for Class Pairs

Description

For each pair of classes in the dataset, this function computes the within-class and between-class scatter matrices restricted to those two classes.

Usage

pairwise_within_scatter(X, labels)

Arguments

X

A numeric matrix (n x d).

labels

A factor or numeric vector of length n representing class labels.

Value

A list of length equal to the number of class pairs, where each element is a list with w (within-class) and b (between-class) scatter matrices.


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