wolffd@0: wolffd@0:
wolffd@0:wolffd@0: d = dist2(x, c) wolffd@0:wolffd@0: wolffd@0: wolffd@0:
d = dist2(x, c)
takes two matrices of vectors and calculates the
wolffd@0: squared Euclidean distance between them. Both matrices must be of the
wolffd@0: same column dimension. If x
has m
rows and n
columns, and
wolffd@0: c
has l
rows and n
columns, then the result has
wolffd@0: m
rows and l
columns. The i, j
th entry is the
wolffd@0: squared distance from the i
th row of x
to the j
th
wolffd@0: row of c
.
wolffd@0:
wolffd@0: rbffwd
to calculate the activation of
wolffd@0: a thin plate spline function.
wolffd@0: wolffd@0: wolffd@0: n2 = dist2(x, c); wolffd@0: z = log(n2.^(n2.^2)); wolffd@0:wolffd@0: wolffd@0: wolffd@0:
gmmactiv
, kmeans
, rbffwd
Copyright (c) Ian T Nabney (1996-9) wolffd@0: wolffd@0: wolffd@0: wolffd@0: