Given weights matrix Wt, find sum of weighted pairwise outer product of differences, i.e. sum_i,j Wt_ij(x_i-x_j)(x_i-x_j)^T. Internal use only.
Weight matrix, nrow(x)-by-nrow(x)
data matrix, one observation per row.
the weighted sum of outer product of pairwise differences.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.