binary_between_scatter | R Documentation |
For two distinct groups within a dataset, this computes:
S_b = n_1 (m_1 - m)(m_1 - m)^T + n_2 (m_2 - m)(m_2 - m)^T
where \(m_1\) and \(m_2\) are the class means and \(m\) is the mean of both groups combined.
binary_between_scatter(X, id1, id2)
X |
A numeric matrix (n x d). |
id1 |
A vector of indices for the first group. |
id2 |
A vector of indices for the second group. |
A numeric (d x d) between-class scatter matrix for the two groups.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.