powered by
get the average distortion measure
qerror(obj, err.radius=1)
An average of the following quantity (weighted distance measure) over all x in the sample,
$$\sum ||x - m_i|| h_{ci}$$
where \(h_{ci}\) is the neighbourhood kernel for the ith code.
a `som' object
radius used calculating qerror
Jun Yan <jyan@stat.uiowa.edu>
foo <- som(matrix(rnorm(1000), 100), 2, 4) qerror(foo, 3)
Run the code above in your browser using DataLab