Distance enum
A type of vector distance
Actually, it's a measure of similarity of two vectors: the greater the distance, the less similar the vectors are and vice versa
Distance.euclidean Distance, calculated according to the formula:
Distance.manhattan Distance, as known as Taxicab distance. It's calculated according to the formula:
Distance.cosine Distance, based on vector orientation, or rather on cosine of the angle between two vectors: the more the angle, the less similar the vectors are. It's calculated according to the formula:
A case, when two vectors have the greatest similarity according to this distance, is when the angle between them is equal to 0 degrees. The angle's cosine in this case is equal to 1.
This distance is good for determining similarity of 2 sparse vectors (a case, when vector norms are disparate)
Distance.hamming Distance, calculated according to the formula:
In other words, the distance is calculated based on a number of elements whose values are different: the more the number, the less similar the vectors are
Constructors
 Distance()

const
Values
Properties
Methods

noSuchMethod(
Invocation invocation) → dynamic 
Invoked when a nonexistent method or property is accessed.
inherited

toString(
) → String 
A string representation of this object.
inherited
Operators

operator ==(
Object other) → bool 
The equality operator.
inherited