pairwise_within_scatter | R Documentation |
For each pair of classes in the dataset, this function computes the within-class and between-class scatter matrices restricted to those two classes.
pairwise_within_scatter(X, labels)
X |
A numeric matrix (n x d). |
labels |
A factor or numeric vector of length n representing class labels. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.