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

View source: R/kmneighbourhood.R

kmneighbourhoodR Documentation

Compute the neighbourhod of a state within a knowledge structure

Description

kmneighbourhood 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

kmneighbourhood(state, struct)

Arguments

state

Binary vector representing a knowledge state

struct

Binary matrix representing a knowledge structure

Value

Matrix containing the neighbouring states, one per row

See Also

Other Neighbourhood & fringe: kmfringe()

Examples

kmneighbourhood(c(1,1,0,0), xpl$space)


kstMatrix documentation built on Oct. 12, 2023, 5:06 p.m.