kmbasisneighbourhood: Compute the neighbourhod of a state within a knowledge...

View source: R/kmbasisneighbourhood.R

kmbasisneighbourhoodR Documentation

Compute the neighbourhod of a state within a knowledge structure using its basis

Description

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.

Usage

kmbasisneighbourhood(state, basis, include = FALSE)

Arguments

state

Binary vector representing a knowledge state

basis

kmbasis object

include

Boolean whether the original state should be included in the result (default FALSE)

Value

Matrix containing the neighbouring states, one per row

See Also

Other Fringes & learning paths: kmbasisfringe(), kmfringe(), kmgradations(), kmlearningpaths(), kmneighbourhood(), kmnneighbourhood()

Examples

kmbasisneighbourhood(c(1,1,0,0), xpl$basis)


kstMatrix documentation built on Dec. 18, 2025, 5:07 p.m.