View source: R/kmbasisneighbourhood.R
| kmbasisneighbourhood | R Documentation |
kmbasisneighbourhood 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.
kmbasisneighbourhood(state, basis, include = FALSE)
state |
Binary vector representing a knowledge state |
basis |
|
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(),
kmfringe(),
kmgradations(),
kmlearningpaths(),
kmneighbourhood(),
kmnneighbourhood()
kmbasisneighbourhood(c(1,1,0,0), xpl$basis)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.