Vector Module
Functions and values
| Function or value | Description |
Full Usage:
cityblock v1 v2
Parameters:
Vector<^a>
-
v2 : Vector<^a>
-
Returns: float
Modifiers: inline Type parameters: ^a |
|
Full Usage:
cityblockNaN v1 v2
Parameters:
Vector<float>
-
v2 : Vector<float>
-
Returns: float
Modifiers: inline |
|
Full Usage:
euclidean v1 v2
Parameters:
Vector<^a>
v2 : Vector<^a>
Returns: float
Modifiers: inline Type parameters: ^a |
|
Full Usage:
euclideanNaN v1 v2
Parameters:
Vector<float>
-
v2 : Vector<float>
-
Returns: float
|
|
Full Usage:
euclideanSquared v1 v2
Parameters:
Vector<^a>
-
v2 : Vector<^a>
-
Returns: float
Modifiers: inline Type parameters: ^a |
|
Full Usage:
hamming v1 v2
Parameters:
Vector<'a>
-
first vector
v2 : Vector<'a>
-
second vector
Returns: int
Hamming distance between elements of given vectors
Modifiers: inline Type parameters: 'a |
Note, distance between Nan and Nan is equal to 1
Example
val v1: obj
val s2: obj
|
Full Usage:
minkowski v1 v2 p
Parameters:
Vector<float>
-
first vector
v2 : Vector<float>
-
second vector
p : float
-
float constrained to `p > 0`
Returns: float option
Minkowski distance between elements of given vectors. Returns NaN if vectors contain NaN.
Modifiers: inline |
The two vectors need not have equal lengths: when one vectors is exhausted any remaining elements in the other vectors are ignored.
Example
val v1: obj
val v2: obj
|
Full Usage:
minkowskiNaN v1 v2 p
Parameters:
Vector<float>
-
first vector
v2 : Vector<float>
-
second vector
p : float
-
float constrained to `p > 0`
Returns: float option
Minkowski distance between elements of given vectors.
Modifiers: inline |
Non-regular differences between the sequences are ignored. The two vectors need not have equal lengths: when one vectors is exhausted any remaining elements in the other vectors are ignored.
Example
val v1: obj
val v2: obj
|
FSharp.Stats