C# 클래스 MyMediaLite.DataType.VectorUtils

Tools for vector-like data
파일 보기 프로젝트 열기: zenogantner/MML-KDD

공개 메소드들

메소드 설명
EuclideanNorm ( ICollection vector ) : double

Compute the Euclidean norm of a collection of doubles

InitNormal ( IList vector, double mean, double stdev ) : void

Initialize a collection of doubles with values from a normal distribution

L1Norm ( ICollection vector ) : double

Compute the L1 norm of a collection of doubles

ReadVector ( TextReader reader ) : IList

Read a collection of doubles from a TextReader object

WriteVector ( StreamWriter writer, ICollection vector ) : void

Write a collection of doubles to a streamwriter

메소드 상세

EuclideanNorm() 공개 정적인 메소드

Compute the Euclidean norm of a collection of doubles
public static EuclideanNorm ( ICollection vector ) : double
vector ICollection the vector to compute the norm for
리턴 double

InitNormal() 공개 정적인 메소드

Initialize a collection of doubles with values from a normal distribution
public static InitNormal ( IList vector, double mean, double stdev ) : void
vector IList the vector to initialize
mean double the mean of the normal distribution
stdev double the standard deviation of the normal distribution
리턴 void

L1Norm() 공개 정적인 메소드

Compute the L1 norm of a collection of doubles
public static L1Norm ( ICollection vector ) : double
vector ICollection the vector to compute the norm for
리턴 double

ReadVector() 공개 정적인 메소드

Read a collection of doubles from a TextReader object
public static ReadVector ( TextReader reader ) : IList
reader System.IO.TextReader the to read from
리턴 IList

WriteVector() 공개 정적인 메소드

Write a collection of doubles to a streamwriter
public static WriteVector ( StreamWriter writer, ICollection vector ) : void
writer System.IO.StreamWriter a
vector ICollection a collection of double values
리턴 void