wccmap {wccsom}R Documentation

Map one powder pattern to a trained Kohonen map

Description

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

Usage

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

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))

[Package wccsom version 1.2.3 Index]