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, include = FALSE)
state |
Binary vector representing a knowledge state |
struct |
Binary matrix representing a knowledge structure |
include |
Boolean whether the original state should be included in the result (default FALSE) |
Matrix containing the neighbouring states, one per row
Other Fringes & learning paths:
kmbasisfringe(),
kmbasisneighbourhood(),
kmfringe(),
kmgradations(),
kmlearningpaths(),
kmnneighbourhood()
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.