kmnneighbourhood {kstMatrix}R Documentation

Compute the n-neighbourhod of a state within a knowledge structure

Description

kmnneighbourhood computes the n-neighbourhood of a state within a knowledge structure, i.e. the family of all other states with a symmetric set difference maximal n.

Usage

kmnneighbourhood(state, struct, distance)

Arguments

state

Binary vector representing a knowledge state

struct

Binary matrix representing a knowledge structure

distance

Size of the n-neighbourhood

Value

Matrix containing the neighbouring states, one per row

Examples

kmnneighbourhood(c(1,1,0,0), xpl$space, 2)


[Package kstMatrix version 0.2-0 Index]