C# Class GoodAI.ToyWorld.Language.LabeledVector

Vectors with string labels and basic vector operations
Exibir arquivo Open project: GoodAI/BrainSimulator Class Usage Examples

Public Methods

Method Description
Add ( float vector1, float vector2 ) : float[]

Performs elementwise addition of vectors.

Cosine ( LabeledVector otherVector ) : float
Cosine ( float otherVector ) : float
Cosine ( float vector1, float vector2 ) : float
Euclidean ( LabeledVector otherVector ) : float
Euclidean ( float otherVector ) : float
Euclidean ( float vector1, float vector2 ) : float
InnerProduct ( LabeledVector otherVector ) : float
InnerProduct ( float otherVector ) : float
InnerProduct ( float vector1, float vector2 ) : float
LabeledVector ( string label, float vector ) : System
SquaredEuclidean ( float vector1, float vector2 ) : float
Subtract ( float vector1, float vector2 ) : float[]

Performs elementwise subtraction of vectors.

VectorLength ( float vector ) : float

Method Details

Add() public static method

Performs elementwise addition of vectors.
public static Add ( float vector1, float vector2 ) : float[]
vector1 float a vector
vector2 float another vector
return float[]

Cosine() public method

public Cosine ( LabeledVector otherVector ) : float
otherVector LabeledVector
return float

Cosine() public method

public Cosine ( float otherVector ) : float
otherVector float
return float

Cosine() public static method

public static Cosine ( float vector1, float vector2 ) : float
vector1 float
vector2 float
return float

Euclidean() public method

public Euclidean ( LabeledVector otherVector ) : float
otherVector LabeledVector
return float

Euclidean() public method

public Euclidean ( float otherVector ) : float
otherVector float
return float

Euclidean() public static method

public static Euclidean ( float vector1, float vector2 ) : float
vector1 float
vector2 float
return float

InnerProduct() public method

public InnerProduct ( LabeledVector otherVector ) : float
otherVector LabeledVector
return float

InnerProduct() public method

public InnerProduct ( float otherVector ) : float
otherVector float
return float

InnerProduct() public static method

public static InnerProduct ( float vector1, float vector2 ) : float
vector1 float
vector2 float
return float

LabeledVector() public method

public LabeledVector ( string label, float vector ) : System
label string
vector float
return System

SquaredEuclidean() public static method

public static SquaredEuclidean ( float vector1, float vector2 ) : float
vector1 float
vector2 float
return float

Subtract() public static method

Performs elementwise subtraction of vectors.
public static Subtract ( float vector1, float vector2 ) : float[]
vector1 float first vector
vector2 float second vector
return float[]

VectorLength() public static method

public static VectorLength ( float vector ) : float
vector float
return float