expand: Expand a SOM network

Description Usage Arguments Details Value Examples

View source: R/expand.R

Description

Increases the size of a network by a factor of 2 in both x and y directions; code vectors for new units are interpolated.

Usage

1
expand(somnet, plotit=FALSE)

Arguments

somnet

Object of class "wccsom", generated by wccsom.

plotit

If TRUE, plots the new network with the original units coloured white, the new ones red.

Details

For hexagonal grids, the six closest units are used for interpolation, weighted by distance; for rectangular grids, the four closest are used.

Value

Returns the new network.

Examples

1
2
3
4
5
data(cepha)
gr <- somgrid(3,3, "hexagonal")
set.seed(7)
x <- wccsom(cepha$patterns, grid=gr, trwidth=20, rlen=50)
x2 <- expand(x, plotit=TRUE)

wccsom documentation built on May 30, 2017, 12:52 a.m.

Related to expand in wccsom...