com.anji.nn
Class BiasConnection

java.lang.Object
  extended bycom.anji.nn.BiasConnection
All Implemented Interfaces:
Connection

public class BiasConnection
extends java.lang.Object
implements Connection

Connection used for bias node, clamped at 1.

Author:
Philip Tucker

Field Summary
 
Fields inherited from interface com.anji.nn.Connection
XML_TAG
 
Method Summary
 long cost()
           
static BiasConnection getInstance()
           
 double read()
           
 java.lang.String toXml()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static BiasConnection getInstance()
Returns:
singleton instance

read

public double read()
Specified by:
read in interface Connection
Returns:
double value carried on this connection from incoming neuron
See Also:
Connection.read()

toXml

public java.lang.String toXml()
Specified by:
toXml in interface Connection
Returns:
String representation of object
See Also:
Connection.toXml()

cost

public long cost()
Specified by:
cost in interface Connection
Returns:
number corresponding to cost of activation in resources
See Also:
Connection.cost()