|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.openai.ai.nn.network.Neuron
| Constructor Summary | |
Neuron()
|
|
| Method Summary | |
void |
addConnectionFrom(Connection connection)
Add a connection from this neuron. |
void |
addConnectionTo(Connection connection)
Add a connection to this neuron. |
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. |
double |
getInput()
Gets the input for this neuron. |
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 |
setInput(double input)
Sets the input for this neuron. |
void |
setOutput(double output)
Sets the output for this neuron. |
java.lang.String |
toString()
Returns a string rpresentation of the neuron. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Neuron()
| Method Detail |
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 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 java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||