lnsc
Class LinearUnit

java.lang.Object
  |
  +--lnsc.AbstractFunctionalUnit
        |
        +--lnsc.AbstractSimpleUnit
              |
              +--lnsc.LinearUnit
All Implemented Interfaces:
java.lang.Cloneable, FunctionalUnit, java.io.Serializable

public final class LinearUnit
extends AbstractSimpleUnit

A univariate single-valued linear function. Principally used as input in neural networks. It has the form: f(x) = factor*x + offset.

Since:
1.0
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class lnsc.FunctionalUnit
FunctionalUnit.ProcessPatternResult
 
Field Summary
 
Fields inherited from interface lnsc.FunctionalUnit
EMPTY_PATTERN
 
Constructor Summary
LinearUnit()
          Creates a simple linear unit with Factor=1.0 and Offset=0.0.
LinearUnit(double newFactor, double newOffset)
          Creates a simple linear unit with given factor and offset.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class lnsc.AbstractSimpleUnit
getFactor, getOffset, processPattern, setFactor, setOffset
 
Methods inherited from class lnsc.AbstractFunctionalUnit
clone, getInputCount, getOutputCount, isDifferentiable, isStateless, isTwiceDifferentiable, processDataSet, reset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinearUnit

public LinearUnit()
Creates a simple linear unit with Factor=1.0 and Offset=0.0.


LinearUnit

public LinearUnit(double newFactor,
                  double newOffset)
Creates a simple linear unit with given factor and offset.

Parameters:
newFactor - Function factor.
newOffset - Function offset.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class AbstractSimpleUnit