|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.neural.networks.structure.LayerComparator
public class LayerComparator
Used to compare layers and ensure a consistent sort order.
| Constructor Summary | |
|---|---|
LayerComparator(NeuralStructure structure)
Construct a level comparator for the specified structure. |
|
| Method Summary | |
|---|---|
int |
compare(Layer layer1,
Layer layer2)
Compare two layers. |
boolean |
equal(Layer layer1,
Layer layer2)
Determine if two layers are equal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public LayerComparator(NeuralStructure structure)
structure - The structure of the neural network to compare.| Method Detail |
|---|
public int compare(Layer layer1,
Layer layer2)
compare in interface java.util.Comparator<Layer>layer1 - The first layer to compare.layer2 - The second layer to compare.
public boolean equal(Layer layer1,
Layer layer2)
layer1 - The first layer to compare.layer2 - The second layer to compare.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||