edu.rice.comp440.net
Class InputUnit

java.lang.Object
  |
  +--edu.rice.comp440.net.InputUnit

public class InputUnit
extends java.lang.Object
implements Unit

See Also:
Serialized Form

Field Summary
protected  double value
           
 
Constructor Summary
protected InputUnit()
          Builds a hidden unit taking the provided number of inputs.
 
Method Summary
 double getValue()
          Returns the current value of this input
 void recompute()
          Recomputes the value of this hidden unit, querying it's prior inputs.
protected  void setValue(double value)
          Sets the value of this input unit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected double value
Constructor Detail

InputUnit

protected InputUnit()
Builds a hidden unit taking the provided number of inputs. Sets the initial weights to be random values, using the provided RNG.
Parameters:
units - The input units to this unit
random - The random number generator
Method Detail

setValue

protected void setValue(double value)
Sets the value of this input unit
Returns:
the value

recompute

public void recompute()
Recomputes the value of this hidden unit, querying it's prior inputs.
Specified by:
recompute in interface Unit

getValue

public double getValue()
Returns the current value of this input
Specified by:
getValue in interface Unit
Returns:
The current value of this input