Method | 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.
|
Method | Description | |
---|---|---|
Equilat ( int n, double high, double low ) : double[][] |
Called internally to generate the matrix.
|
public Decode ( double activations ) : int | ||
activations | double | The output from the neural network. |
return | int |
public Encode ( int set ) : double[] | ||
set | int | The set to determine the activations for. |
return | double[] |
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. |
return | System |
public GetDistance ( double data, int set ) : double | ||
data | double | The data to check. |
set | int | The set to check. |
return | double |
public GetSmallestDistance ( double data ) : int | ||
data | double | The data to check. |
return | int |