Hacker News new | past | comments | ask | show | jobs | submit login

you are calculating inner product of otrhogonal vectors. For distance it should be abs(a-b) it will result to sqrt(2).



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: