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