Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Phpml\Math\Distance\Distance Class Reference
Inheritance diagram for Phpml\Math\Distance\Distance:
Phpml\Math\Distance Phpml\Math\Distance\Chebyshev Phpml\Math\Distance\Euclidean Phpml\Math\Distance\Manhattan Phpml\Math\Distance\Minkowski

Public Member Functions

 __construct (float $norm=3.0)
 Distance constructor.
 
 distance (array $a, array $b)
 

Public Attributes

float int $norm
 

Protected Member Functions

 deltas (array $a, array $b)
 

Member Function Documentation

◆ deltas()

Phpml\Math\Distance\Distance::deltas ( array $a,
array $b )
protected
Exceptions
InvalidArgumentException

◆ distance()

Phpml\Math\Distance\Distance::distance ( array $a,
array $b )
Exceptions
InvalidArgumentException

Implements Phpml\Math\Distance.

Reimplemented in Phpml\Math\Distance\Chebyshev.


The documentation for this class was generated from the following file: