Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Phpml\Math\Distance\Euclidean Class Reference
Inheritance diagram for Phpml\Math\Distance\Euclidean:
Phpml\Math\Distance\Distance Phpml\Math\Distance

Public Member Functions

 __construct ()
 Euclidean constructor.
 
 distance (array $a, array $b)
 
 sqDistance (array $a, array $b)
 Square of Euclidean distance.
 

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 )
protectedinherited
Exceptions
InvalidArgumentException

◆ distance()

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

Implements Phpml\Math\Distance.

Reimplemented in Phpml\Math\Distance\Chebyshev.

◆ sqDistance()

Phpml\Math\Distance\Euclidean::sqDistance ( array $a,
array $b )

Square of Euclidean distance.

Exceptions
Phpml\Exception\InvalidArgumentException

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