__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
declare(strict_types=1);
namespace Phpml\Math\Distance;
/**
* Class Euclidean
*
* L^2 Metric.
*/
class Euclidean extends Distance
{
/**
* Euclidean constructor.
*/
public function __construct()
{
parent::__construct(2.0);
}
/**
* Square of Euclidean distance
*
* @throws \Phpml\Exception\InvalidArgumentException
*/
public function sqDistance(array $a, array $b): float
{
return $this->distance($a, $b) ** 2;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Chebyshev.php | File | 277 B | 0777 |
|
| Distance.php | File | 1.15 KB | 0777 |
|
| Euclidean.php | File | 505 B | 0777 |
|
| Manhattan.php | File | 273 B | 0777 |
|
| Minkowski.php | File | 147 B | 0777 |
|