ktrace.Rd
Computes the trace of knowledge structures.
ktrace(x, items)
x | An R object of class |
---|---|
items | A set of items for which the trace is computed. |
The trace of a knowledge structure K on a set A is the substructure of the knowledge structure K on the set A, i.e., the substructure resulting from restricting the knowledge structure K to the items specified in A.
An R object of class kstructure
where each element
represents one knowledge state of the knowledge structure on the item
specified in items
.
Doignon, J.-P., Falmagne, J.-C. (1999) Knowledge Spaces. Heidelberg: Springer Verlag.
kst <- kstructure(set(set("a"), set("a","b"), set("a","c"), set("d","e"), set("a","b","d","e"), set("a","c","d","e"), set("a","b","c","d","e"))) ktrace(kst, items=set("c","d","e"))#> {{}, {c}, {d, e}, {c, d, e}}