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

SOM

Self-Organizing Maps clustering method


Description

Run the SOM algorithm for clustering.

Usage

SOM(
  d,
  xdim = floor(sqrt(nrow(d))),
  ydim = floor(sqrt(nrow(d))),
  rlen = 10000,
  post = c("none", "single", "ward"),
  k = NULL,
  ...
)

Arguments

d

The dataset (matrix or data.frame).

xdim, ydim

The dimensions of the grid.

rlen

The number of iterations.

post

The post-treatement method: "none" (None), "single" (Single link) or "ward" (Ward clustering).

k

The number of cluster (only used if post is different from "none").

...

Other parameters.

Value

The fitted Kohonen's map as an object of class som.

See Also

Examples

require (datasets)
data (iris)
SOM (iris [, -5], xdim = 5, ydim = 5, post = "ward", k = 3)

fdm2id

Data Mining and R Programming for Beginners

v0.9.5
GPL-3
Authors
Alexandre Blansché [aut, cre]
Initial release

We don't support your browser anymore

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