<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>K-Means on davethehuman.com</title><link>https://davethehuman.com/tags/k-means/</link><description>Recent content in K-Means on davethehuman.com</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2026 Dave the human</copyright><lastBuildDate>Tue, 29 Sep 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://davethehuman.com/tags/k-means/index.xml" rel="self" type="application/rss+xml"/><item><title>euclidean distance</title><link>https://davethehuman.com/notes/euclidean-distance/</link><pubDate>Tue, 29 Sep 2026 00:00:00 +0000</pubDate><guid>https://davethehuman.com/notes/euclidean-distance/</guid><description>&lt;p&gt;The &lt;em&gt;Euclidean distance&lt;/em&gt; is the measure of the true straight-line distance between two points in a Euclidean space. It is the geometric distance you would measure with a ruler, representing the shortest path between those points.&lt;/p&gt;

&lt;h2 class="relative group"&gt;The Formula
 &lt;div id="the-formula" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#the-formula" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
$$
d(p, q) = \sqrt{\sum_{i=1}^{n} (q_i - p_i)^2}
$$&lt;p&gt;In a 2D Space, for two points $P_1(x_1, y_1)$ and $P_2(x_2, y_2)$: &lt;/p&gt;</description></item></channel></rss>