MyMediaLite
3.04
|
Extensions for vector-like data. More...
Static Public Member Functions | |
static double | EuclideanNorm (this ICollection< double > vector) |
Compute the Euclidean norm of a collection of doubles. | |
static double | EuclideanNorm (this ICollection< float > vector) |
Compute the Euclidean norm of a collection of floats. | |
static void | Inc (this IList< double > vector1, IList< double > vector2) |
Increment a vector by another one. | |
static void | Inc (this IList< float > vector1, IList< float > vector2) |
Increment a vector by another one. | |
static void | Inc (this IList< double > vector1, IList< float > vector2) |
Increment a vector by another one. | |
static void | Init (this IList< float > vector, float val) |
Initialize a collection of floats with one value. | |
static void | InitNormal (this IList< double > vector, double mean, double stddev) |
Initialize a collection of doubles with values from a normal distribution. | |
static void | InitNormal (this IList< float > vector, double mean, double stddev) |
Initialize a collection of floats with values from a normal distribution. | |
static double | L1Norm (this ICollection< double > vector) |
Compute the L1 norm of a collection of doubles. | |
static void | Multiply (this IList< double > vector, double x) |
Multiply a vector by a scalar. | |
static void | Multiply (this IList< float > vector, float x) |
Multiply a vector by a scalar. | |
static void | Multiply (this IList< float > vector, double x) |
Multiply a vector by a scalar. | |
static double | ScalarProduct (IList< double > v1, IList< double > v2) |
Compute scalar product (dot product) of two vectors. | |
static float | ScalarProduct (IList< float > v1, IList< float > v2) |
Compute scalar product (dot product) of two vectors. |
Extensions for vector-like data.
static double EuclideanNorm | ( | this ICollection< double > | vector | ) | [inline, static] |
Compute the Euclidean norm of a collection of doubles.
vector | the vector to compute the norm for |
static double EuclideanNorm | ( | this ICollection< float > | vector | ) | [inline, static] |
Compute the Euclidean norm of a collection of floats.
vector | the vector to compute the norm for |
static void Inc | ( | this IList< double > | vector1, |
IList< double > | vector2 | ||
) | [inline, static] |
Increment a vector by another one.
vector1 | the vector to be incremented |
vector2 | the vector to be added to the first one |
static void Inc | ( | this IList< float > | vector1, |
IList< float > | vector2 | ||
) | [inline, static] |
Increment a vector by another one.
vector1 | the vector to be incremented |
vector2 | the vector to be added to the first one |
static void Inc | ( | this IList< double > | vector1, |
IList< float > | vector2 | ||
) | [inline, static] |
Increment a vector by another one.
vector1 | the vector to be incremented |
vector2 | the vector to be added to the first one |
static void Init | ( | this IList< float > | vector, |
float | val | ||
) | [inline, static] |
Initialize a collection of floats with one value.
vector | the vector to initialize |
val | the value to set each element to |
static void InitNormal | ( | this IList< double > | vector, |
double | mean, | ||
double | stddev | ||
) | [inline, static] |
Initialize a collection of doubles with values from a normal distribution.
vector | the vector to initialize |
mean | the mean of the normal distribution |
stddev | the standard deviation of the normal distribution |
static void InitNormal | ( | this IList< float > | vector, |
double | mean, | ||
double | stddev | ||
) | [inline, static] |
Initialize a collection of floats with values from a normal distribution.
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.
vector | the vector to compute the norm for |
static void Multiply | ( | this IList< double > | vector, |
double | x | ||
) | [inline, static] |
Multiply a vector by a scalar.
vector | the vector to be multiplied |
x | the scalar |
static void Multiply | ( | this IList< float > | vector, |
float | x | ||
) | [inline, static] |
Multiply a vector by a scalar.
vector | the vector to be multiplied |
x | the scalar |
static void Multiply | ( | this IList< float > | vector, |
double | x | ||
) | [inline, static] |
Multiply a vector by a scalar.
vector | the vector to be multiplied |
x | the scalar |
static double ScalarProduct | ( | IList< double > | v1, |
IList< double > | v2 | ||
) | [inline, static] |
Compute scalar product (dot product) of two vectors.
v1 | the first vector |
v2 | the second vector |
static float ScalarProduct | ( | IList< float > | v1, |
IList< float > | v2 | ||
) | [inline, static] |
Compute scalar product (dot product) of two vectors.
v1 | the first vector |
v2 | the second vector |