|
||||||||||
| 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.
| 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 |
| 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 int decode(double[] activations)
activations - The output from the neural network.
public double[] encode(int set)
set - The set to determine the activations for.
public 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 | |||||||||