C# Class Encog.MathUtil.Equilateral

Used to produce an array of activations to classify data into groups. This class is provided the number of groups, as well as the range that the activations should fall into.
Afficher le fichier Open project: encog/encog-silverlight-core Class Usage Examples

Méthodes publiques

Méthode Description
Decode ( double activations ) : int

Decode a set of activations and see which set it has the lowest Euclidean distance from.

Encode ( int set ) : double[]

Get the activations for the specified set.

Equilateral ( int count, double high, double low ) : System

Construct an equilateral matrix.

GetDistance ( double data, int set ) : double

Get the Euclidean distance between the specified data and the set number.

GetSmallestDistance ( double data ) : int

Get the smallest distance.

Private Methods

Méthode Description
Equilat ( int n, double high, double low ) : double[][]

Called internally to generate the matrix.

Method Details

Decode() public méthode

Decode a set of activations and see which set it has the lowest Euclidean distance from.
public Decode ( double activations ) : int
activations double The output from the neural network.
Résultat int

Encode() public méthode

Get the activations for the specified set.
public Encode ( int set ) : double[]
set int The set to determine the activations for.
Résultat double[]

Equilateral() public méthode

Construct an equilateral matrix.
public Equilateral ( int count, double high, double low ) : System
count int The number of sets, these will be the rows in the matrix.
high double The high value for the outputs.
low double The low value for the outputs.
Résultat System

GetDistance() public méthode

Get the Euclidean distance between the specified data and the set number.
public GetDistance ( double data, int set ) : double
data double The data to check.
set int The set to check.
Résultat double

GetSmallestDistance() public méthode

Get the smallest distance.
public GetSmallestDistance ( double data ) : int
data double The data to check.
Résultat int