VectorExtensions Class Reference
Extensions for vector-like data.
More...
List of all members.
Static Public Member Functions |
static double | EuclideanNorm (this ICollection< double > vector) |
| Compute the Euclidean norm of a collection of doubles.
|
static void | InitNormal (this IList< double > vector, double mean, double stddev) |
| Initialize a collection of doubles with values from a normal distribution.
|
static double | L1Norm (this ICollection< double > vector) |
| Compute the L1 norm of a collection of doubles.
|
Detailed Description
Extensions for vector-like data.
Member Function Documentation
static double EuclideanNorm |
( |
this ICollection< double > |
vector |
) |
[inline, static] |
Compute the Euclidean norm of a collection of doubles.
- Parameters:
-
| vector | the vector to compute the norm for |
- Returns:
- the Euclidean norm of the vector
static void InitNormal |
( |
this IList< double > |
vector, |
|
|
double |
mean, |
|
|
double |
stddev | |
|
) |
| | [inline, static] |
Initialize a collection of doubles 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 double L1Norm |
( |
this ICollection< double > |
vector |
) |
[inline, static] |
Compute the L1 norm of a collection of doubles.
- Parameters:
-
| vector | the vector to compute the norm for |
- Returns:
- the L1 norm of the vector
The documentation for this class was generated from the following file:
- DataType/VectorExtensions.cs