Description Usage Arguments Value Author(s) References See Also Examples
Function calculates the agreement - as measured by WCC - of a powder pattern to all units in a network (SOM or XYF).
1 | wccmap(x, obj)
|
x |
Kohonen network, either from wccsom or wccxyf |
obj |
Vector: new powder pattern |
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.
Ron Wehrens
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.
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.