VectorUtils Class Reference
Tools for vector-like data.
More...
List of all members.
Static Public Member Functions |
static double | EuclideanNorm (ICollection< double > vector) |
| Compute the Euclidean norm of a collection of doubles.
|
static void | InitNormal (IList< double > vector, double mean, double stdev) |
| Initialize a collection of doubles with values from a normal distribution.
|
static IList< double > | ReadVector (TextReader reader) |
| Read a collection of doubles from a TextReader object.
|
static void | WriteVector (StreamWriter writer, ICollection< double > vector) |
| Write a collection of doubles to a streamwriter.
|
Detailed Description
Tools for vector-like data.
Member Function Documentation
static double EuclideanNorm |
( |
ICollection< double > |
vector |
) |
[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 |
( |
IList< double > |
vector, |
|
|
double |
mean, |
|
|
double |
stdev | |
|
) |
| | [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 |
| stdev | the standard deviation of the normal distribution |
static IList<double> ReadVector |
( |
TextReader |
reader |
) |
[static] |
Read a collection of doubles from a TextReader object.
- Parameters:
-
| reader | the TextReader to read from |
- Returns:
- a list of double values
static void WriteVector |
( |
StreamWriter |
writer, |
|
|
ICollection< double > |
vector | |
|
) |
| | [static] |
Write a collection of doubles to a streamwriter.
- Parameters:
-
| writer | a StreamWriter |
| vector | a collection of double values |
The documentation for this class was generated from the following file: