View source: R/knneighbourhood.R
knneighbourhood | R Documentation |
Computes the neighbourhood of a knowledge state.
knneighbourhood(kst, state, distance)
kst |
An R object of class |
state |
An R object of class |
distance |
An integer specifying the size of the neighbourhood |
The n-neighbourhood of a knowledge state is the set of all those states which have a symmetric seu difference of not more than n.
A set of sets containing the n-neighbourhood of state
Doignon, J.-P., Falmagne, J.-C. (1999) Knowledge Spaces. Heidelberg: Springer Verlag.
kneighbourhood
, kfringe
,
kstructure
, set
kst <- kstructure(set(set(), set("c"), set("a","b"), set("b","c"), set("c","d"), set("d","e"), set("a","b","c"), set("b","c","d"), set("c","d","e"), set("a","b","c","d"), set("a","b","d","e"), set("b","c","d","e"), set("a","b","c","d","e"))) knneighbourhood(kst, set("c","d","e"), 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.