H_ball: Hamming Ball

View source: R/utils.R

H_ballR Documentation

Hamming Ball

Description

All label vectors within Hamming distance r of x (supplement §S.4).

Usage

H_ball(x, S, r)

Arguments

x

center of the Hamming Ball (vector of labels in 1:S)

S

number of states

r

radius of the Hamming Ball

Value

Matrix with length(x) rows; each column is one member of the ball, starting with x itself and ordered by distance from x.


lddmm documentation built on Oct. 23, 2026, 5:07 p.m.