mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-16 02:07:08 +00:00
fix minkowski distance
This commit is contained in:
parent
e5ca6c83f1
commit
ded28def2d
@ -36,7 +36,7 @@ class Minkowski implements Distance
|
|||||||
throw InvalidArgumentException::sizeNotMatch();
|
throw InvalidArgumentException::sizeNotMatch();
|
||||||
}
|
}
|
||||||
|
|
||||||
$distance = 1;
|
$distance = 0;
|
||||||
$count = count($a);
|
$count = count($a);
|
||||||
|
|
||||||
for ($i = 0; $i < $count; ++$i) {
|
for ($i = 0; $i < $count; ++$i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user