Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

qerror

quantization accuracy


Description

get the average distortion measure

Usage

qerror(obj, err.radius=1)

Arguments

obj

a ‘som’ object

err.radius

radius used calculating qerror

Value

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.

Author(s)

Jun Yan <jyan@stat.uiowa.edu>

Examples

foo <- som(matrix(rnorm(1000), 100), 2, 4)
qerror(foo, 3)

som

Self-Organizing Map

v0.3-5.1
GPL (>= 3)
Authors
Jun Yan <jyan@stat.uconn.edu>
Initial release
2010-04-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.