Extensions for vector-like data
More...
|
static double | EuclideanNorm (this ICollection< float > vector) |
| Compute the Euclidean norm of a collection of floats More...
|
|
static void | Init (this IList< float > vector, float val) |
| Initialize a collection of floats with one value More...
|
|
static void | InitNormal (this IList< float > vector, double mean, double stddev) |
| Initialize a collection of floats with values from a normal distribution More...
|
|
static float | ScalarProduct (IList< float > v1, IList< float > v2) |
| Compute scalar product (dot product) of two vectors More...
|
|
Extensions for vector-like data
static double EuclideanNorm |
( |
this ICollection< float > |
vector | ) |
|
|
inlinestatic |
Compute the Euclidean norm of a collection of floats
- Parameters
-
vector | the vector to compute the norm for |
- Returns
- the Euclidean norm of the vector
static void Init |
( |
this IList< float > |
vector, |
|
|
float |
val |
|
) |
| |
|
inlinestatic |
Initialize a collection of floats with one value
- Parameters
-
vector | the vector to initialize |
val | the value to set each element to |
static void InitNormal |
( |
this IList< float > |
vector, |
|
|
double |
mean, |
|
|
double |
stddev |
|
) |
| |
|
inlinestatic |
Initialize a collection of floats with values from a normal distribution
- Parameters
-
vector | the vector to initialize |
mean | the mean of the normal distribution |
stddev | the standard deviation of the normal distribution |
static float ScalarProduct |
( |
IList< float > |
v1, |
|
|
IList< float > |
v2 |
|
) |
| |
|
inlinestatic |
Compute scalar product (dot product) of two vectors
- Returns
- the scalar product of the arguments
- Parameters
-
v1 | the first vector |
v2 | the second vector |
The documentation for this class was generated from the following file:
- DataType/VectorExtensions.cs