|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.openai.ai.nn.network.Neuron
Class declaration
Constructor Summary | |
Neuron()
Constructor declaration |
|
Neuron(Layer layer,
long lID)
Constructor declaration |
Method Summary | |
void |
addConnectionFrom(Connection connection)
Add a connection from this neuron. |
void |
addConnectionTo(Connection connection)
Add a connection to this neuron. |
void |
clearConnectionsFrom()
|
void |
clearConnectionsTo()
|
java.util.Vector |
getConnections()
Gets all connections for this neuron.. |
java.util.Vector |
getConnectionsFrom()
Gets all 'from' connections for this neuron.. |
java.util.Vector |
getConnectionsTo()
Gets all 'to' connections for this neuron.. |
Connection |
getConnectionTo(Neuron neuron)
Gets a connection to a particular neuron. |
double |
getError()
Gets the error for this neuron. |
long |
getID()
returns the ID of this Neuron |
protected java.lang.String |
getIDString()
Returns the unique Identifier for this Neuron as String |
double |
getInput()
Gets the input for this neuron. |
Layer |
getLayer()
returns the layer that holds this neuron |
long |
getLayerID()
Method declaration |
double |
getOutput()
Gets the output for this neuron. |
boolean |
isErrorSet()
Returns a flag that tells whether this neuron has had the error set |
void |
setError(double error)
Sets the error for this neuron. |
void |
setErrorFlag(boolean errorSet)
This method primarily required for Castor |
void |
setID(long lID)
Sets the ID of this Neuron |
void |
setInput(double input)
Sets the input for this neuron. |
void |
setLayer(Layer layer)
Sets the layer that holds this neuron |
void |
setOutput(double output)
Sets the output for this neuron. |
java.lang.String |
toString()
Returns a string rpresentation of the neuron. |
void |
updateConnectionPool()
Updates connections based on connectionsFrom and connectionsTo. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Neuron()
public Neuron(Layer layer, long lID)
layer
- lID
- Method Detail |
public Layer getLayer()
protected java.lang.String getIDString()
public void setLayer(Layer layer)
public void setID(long lID)
public long getID()
public final double getInput()
public final void setInput(double input)
input
- The input to be set for this neuron.public final double getOutput()
public final void setOutput(double output)
output
- The output to be set for this neuron.public final void updateConnectionPool()
public final Connection getConnectionTo(Neuron neuron)
neuron
- The neuron which may be connected to this neuron.
public final java.util.Vector getConnections()
public final java.util.Vector getConnectionsTo()
public final java.util.Vector getConnectionsFrom()
public final void addConnectionFrom(Connection connection)
connection
- The connection to add.public final void addConnectionTo(Connection connection)
connection
- The connection to add.public final double getError()
public final void setError(double error)
error
- The error to be set for this neuron.public final boolean isErrorSet()
public final void setErrorFlag(boolean errorSet)
public final java.lang.String toString()
toString
in class java.lang.Object
public long getLayerID()
public void clearConnectionsFrom()
public void clearConnectionsTo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |