Test Setup Failed
Pull Request — master (#348)
by Pol
03:52 queued 01:30
created

Manhattan::distance()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 2
nc 2
nop 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A Manhattan::__construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Phpml\Math\Distance;
6
7
/**
8
 * Class Manhattan
9
 *
10
 * L^1 Metric.
11
 */
12
class Manhattan extends Distance
13
{
14
    /**
15
     * Manhattan constructor.
16
     */
17
    public function __construct()
18
    {
19
        parent::__construct(1.0);
20
    }
21
}
22