|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.ai.neuralnetwork.LayerFactory
public class LayerFactory
Provides a factory to create Layer
instances.
Field Summary | |
---|---|
static String |
INPUT_LAYER_NAME
Input layer name. |
static String |
OUTPUT_LAYER_NAME
Output layer name. |
Method Summary | |
---|---|
ILayer |
create(String name,
int nodeCount,
boolean isBiasNodeUsed)
Create a new Layer of the appropriate type. |
ILayer |
createInputLayer(int nodeCount,
boolean isBiasNodeUsed)
Create a new Layer of the appropriate type. |
ILayer |
createOutputLayer(int nodeCount)
Create a new Layer of the appropriate type. |
static LayerFactory |
getInstance()
Return the singleton instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INPUT_LAYER_NAME
public static final String OUTPUT_LAYER_NAME
Method Detail |
---|
public static final LayerFactory getInstance()
public ILayer create(String name, int nodeCount, boolean isBiasNodeUsed)
Layer
of the appropriate type.
name
- Name.nodeCount
- Node count.isBiasNodeUsed
- Flag indicating if a bias node is used.public ILayer createInputLayer(int nodeCount, boolean isBiasNodeUsed)
Layer
of the appropriate type.
nodeCount
- Node count.isBiasNodeUsed
- Flag indicating if a bias node is used.public ILayer createOutputLayer(int nodeCount)
Layer
of the appropriate type.
nodeCount
- Node count.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |