org.encog.mathutil
public class Equilateral extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
MIN_EQ
The minimum number of fields to use equilateral encoding.
|
| Constructor and Description |
|---|
Equilateral(int count,
double high,
double low)
Construct an equilateral matrix.
|
| Modifier and Type | Method and Description |
|---|---|
int |
decode(double[] activations)
Decode a set of activations and see which set it has the lowest Euclidean
distance from.
|
double[] |
encode(int set)
Get the activations for the specified set.
|
double |
getDistance(double[] data,
int set)
Get the Euclidean distance between the specified data and the set number.
|
public static final int MIN_EQ
public Equilateral(int count,
double high,
double low)
count - The number of sets, these will be the rows in the matrix.high - The high value for the outputs.low - The low value for the outputs.public final int decode(double[] activations)
activations - The output from the neural network.public final double[] encode(int set)
set - The set to determine the activations for.public final double getDistance(double[] data,
int set)
data - The data to check.set - The set to check.Copyright © 2014. All Rights Reserved.