View source: R/kmneighbourhood.R
kmnneighbourhood | R Documentation |
kmnneighbourhood
computes the n-neighbourhood of a state
within a knowledge structure, i.e. the family of all other
states with a symmetric set difference maximal n.
kmnneighbourhood(state, struct, distance)
state |
Binary vector representing a knowledge state |
struct |
Binary matrix representing a knowledge structure |
distance |
Size of the n-neighbourhood |
Matrix containing the neighbouring states, one per row
kmnneighbourhood(c(1,1,0,0), xpl$space, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.