Daniel@0: Daniel@0:
Daniel@0:Daniel@0: n2 = mdndist2(mixparams, t) Daniel@0:Daniel@0: Daniel@0: Daniel@0:
n2 = mdndist2(mixparams, t)
takes takes the centres of the Gaussian
Daniel@0: contained in
Daniel@0: mixparams
and the target data matrix, t
, and computes the squared
Daniel@0: Euclidean distance between them. If t
has m
rows and n
Daniel@0: columns, then the centres
field in
Daniel@0: the mixparams
structure should have m
rows and
Daniel@0: n*mixparams.ncentres
columns: the centres in each row relate to
Daniel@0: the corresponding row in t
.
Daniel@0: The result has m
rows and mixparams.ncentres
columns.
Daniel@0: The i, j
th entry is the
Daniel@0: squared distance from the i
th row of x
to the j
th
Daniel@0: centre in the i
th row of mixparams.centres
.
Daniel@0:
Daniel@0: mdnfwd
, mdnprob
Copyright (c) Ian T Nabney (1996-9) Daniel@0:
David J Evans (1998) Daniel@0: Daniel@0: Daniel@0: