//#region src/utils/ml-distance-euclidean/euclidean.ts
function squaredEuclidean(p, q) {
	let d = 0;
	for (let i = 0; i < p.length; i++) d += (p[i] - q[i]) * (p[i] - q[i]);
	return d;
}
function euclidean(p, q) {
	return Math.sqrt(squaredEuclidean(p, q));
}
//#endregion
exports.euclidean = euclidean;

//# sourceMappingURL=euclidean.cjs.map