wccmap: Map one powder pattern to a trained Kohonen map

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/wccmap.R

Description

Function calculates the agreement - as measured by WCC - of a powder pattern to all units in a network (SOM or XYF).

Usage

1
wccmap(x, obj)

Arguments

x

Kohonen network, either from wccsom or wccxyf

obj

Vector: new powder pattern

Value

Returns a vector of length equal to the number of units in the network, containing all WCC values, i.e. similarities of the new pattern to every unit.

Author(s)

Ron Wehrens

References

R. Wehrens, W.J. Melssen, L.M.C. Buydens and R. de Gelder. Representing Structural Databases in a Self-Organising Map. Acta Cryst. B61, 548-557, 2005.

See Also

wccsom, wccxyf, wccassign

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(cepha)
gr <- somgrid(3,3, "hexagonal")
set.seed(7)
x <- wccsom(cepha$patterns, grid=gr, trwidth=20, rlen=100)

wccs1 <- wccmap(x, cepha$patterns[1,])
par(mfrow=c(1,2))
plot(x, "property", property = wccs1, main="Unit similarities to object 1")
plot(x, "property", property = wccs1,
     main="Unit similarities to object 1", zlim=c(0.96, 1))

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