Calculate Best Matching Units
Creates a best matching unit file by projecting data onto a SOM.
ArcGIS Reference
![../../_images/bmu.png](bmu.png)
Parameters
- SOM
- The SOM on which to project data.
- data to project
- The data to project onto the SOM.
- projected data
- The ouput file to contain the projected data.
- distance metric
- The distance metric to use in projecting the data.
- skip masked data vectors
- Skip vectors that have been masked. Masking is done by begining vectors with a “x”, but this is not reccomended since SOM Analyst in several instances does matching based on line number.
- read buffer
- The number of lines to read at a time.
Code Reference
- uiVisual.visual(cin, din, dout, noskip='#', buffer='#', path='\\bin\\SOM_PAK\\')
Creates a BMU file by projecting data onto a SOM.
Arguments : - cin
The input codebook file.
- din
The input data file.
- dout
The output BMU file.
- noskip optional
Do not skip data vectors that have all components masked off.
- buffer optional
A read buffer in number of lines size.