Hamming distance
Let
where we have used an Iverson bracket.
This defines a metric on
- A Hamming ball
is a closed ball under this metric.B 𝑟 ( 𝑐 ) = { 𝑥 ∈ 𝑆 𝑛 : 𝑑 ( 𝑥 , 𝑐 ) ≤ 𝑟 } - The distance of a word from a distinguished
word is called the Hamming weight, or just weight, which sees a generalization in the linear case to Generalized Hamming weight.⃗ 𝟎
#state/tidy | #lang/en | #SemBr