A command that creates a ScalarProduct for each selected Distance.
ScalarProduct entries bij are created from distances dij bij double centering the matrix with elements –1/2 dij2, i.e.,
|bij= –1/2(dij2 – d·j2 – di·2 + d··2),|
where the dot (·) means averaging over that dimension.
© djmw, April 7, 2004