Computes the trace of knowledge structures.

ktrace(x, items)

Arguments

x

An R object of class kstructure.

items

A set of items for which the trace is computed.

Details

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.

Value

An R object of class kstructure where each element represents one knowledge state of the knowledge structure on the item specified in items.

See also

References

Doignon, J.-P., Falmagne, J.-C. (1999) Knowledge Spaces. Heidelberg: Springer Verlag.

Examples

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}}