Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is just a simple doubt I wanted to clear. I'm calculating the Hamming and Euclidean distance between two columns in a matrix, where each column is storing time information in seconds of when a particular event occurred. When I calculate the Hamming and Euclidean distance between the two columns, I get back a certain value. What is the units of measure for that value? Is it in seconds?

share|cite|improve this question
I propose the Hamming to be the unit! – Mariano Suárez-Alvarez Nov 23 '10 at 20:30

The Euclidean distance has the same units as the positions are measured in. The Hamming distance has no units. Think of changing units, say from meters to centimeters. The numeric value of the Euclidean distance will multiply by 100, but the Hamming distance will not change.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.