|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.mathutil.Equilateral
public class 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.
Field Summary | |
---|---|
static int |
MIN_EQ
The minimum number of fields to use equilateral encoding. |
Constructor Summary | |
---|---|
Equilateral(int count,
double high,
double low)
Construct an equilateral matrix. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MIN_EQ
Constructor Detail |
---|
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.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |