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 double L1Norm (ICollection< double > vector)
 Compute the L1 norm of a collection of doubles.
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 double L1Norm ( ICollection< double >  vector  )  [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
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:
Generated on Thu Sep 1 19:35:57 2011 for MyMediaLite by  doxygen 1.6.3