⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 som_clustercolor.html

📁 Kohonen的SOM软件包
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><html><head><title>SOM Toolbox / som_clustercolor </title></head><body bgcolor=#f0f0f0><table border=0 width="100%" cellpadding=0 cellspacing=0><tr><td valign=baseline><font size=+2>SOM Toolbox</font></td><td valign=baseline align=center><a href="somtoolbox.html">Online documentation</td><td valign=baseline align=right><a href="http://www.cis.hut.fi/projects/somtoolbox/" target="_top">http://www.cis.hut.fi/projects/somtoolbox/</a></td></tr></table><hr><H1> som_clustercolor </H1><P><B> color=som_clustercolor(m, class, colorcode)</B></P><PRE> SOM_CLUSTERCOLOR Sets map unit coloring according to classification syntax 1: color = som_clustercolor(m, class, [colorcode])  syntax 2: color = som_clustercolor(class, colormatrix)  Input and output arguments ([]'s are optional):   m           (struct) map or topol struct               (cell array) of form {str,[m1 m2]} where str = 'hexa'                  or 'rect' and [m1 m2] = msize.   class       (matrix) Mxn matrix of integers (class labels)                  where M is the number of map units and each                  column gives some classification for the units.    colorcode   (string) 'rgb1', 'rgb2' (default), 'rgb3', 'rgb4', 'hsv'.   colormatrix (matrix) Mx3 matrix of RGB triplets giving the                  initial color code for each unit.   color       (matrix) size Mx3xn of RGB triplets giving the                  resulting color code for each unit      The function gives a color coding by class and location for the map units. The color is determined by calculating the mean of the  initial RGB values of units belonging to the same class.   Function has two syntaxes:   * If first argument gives the map topology, i.e. is map or topol struct or cell indicating the topology, the initial color coding of the units may be given by a string ('rgb1','rgb2','rgb3','rgb4', or 'hsv') which describe a predefined coloring scheme. (see SOM_COLORCODE). or an initial color matrix of size Mx3 with RGB triplets as rows.   * Another possibility is to give just the classification vector of size Mx1 and an initial color matrix of size Mx3 with RGB  triplets as rows.   EXAMPLE (requires Matlab Statistics Toolbox) % Do a 10-cluster single linkage hierachical clustering for SOM units    class=cluster(linkage(pdist(sM.codebook),'single'),10); % Color code the clusters     C=som_clustercolor(sM, class, 'rgb2'); % Visualize    som_show(sM,'color',C); See also SOM_COLORCODE, SOM_KMEANSCOLOR, SOM_CPLANE, SOM_SHOW</PRE><p><hr><br><center>[ <a href="somtoolbox.html">SOM Toolbox online doc</a> ]</center><br><!-- Last updated: May 30 2002 --></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -