Neuroph

org.neuroph.core.transfer
Class Trapezoid

java.lang.Object
  extended by org.neuroph.core.transfer.TransferFunction
      extended by org.neuroph.core.transfer.Trapezoid
All Implemented Interfaces:
java.io.Serializable

public class Trapezoid
extends TransferFunction
implements java.io.Serializable

The Trapezoid class provides fuzzy trapezoid neuron tranfer function.

See Also:
Serialized Form

Field Summary
(package private)  double leftHigh
           
(package private)  double leftLow
           
(package private)  double rightHigh
           
(package private)  double rightLow
           
private static long serialVersionUID
          The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.
 
Constructor Summary
Trapezoid()
          Creates an instance of Trapezoid transfer function
Trapezoid(double leftLow, double leftHigh, double rightLow, double rightHigh)
          Creates an instance of Trapezoid transfer function with the specified setting.
Trapezoid(java.util.Properties properties)
          Creates an instance of Trapezoid transfer function with the specified properties.
 
Method Summary
 double getLeftHigh()
          Returns left high point of trapezoid function
 double getLeftLow()
          Returns left low point of trapezoid function
 double getOutput(double net)
          Returns the ouput of this function.
 double getRightHigh()
          Returns right high point of trapezoid function
 double getRightLow()
          Returns right low point of trapezoid function
 void setLeftHigh(double leftHigh)
          Sets left high point of trapezoid function
 void setLeftLow(double leftLow)
          Sets left low point of trapezoid function
 void setRightHigh(double rightHigh)
          Sets right high point of trapezoid function
 void setRightLow(double rightLow)
          Sets right low point of trapezoid function
 
Methods inherited from class org.neuroph.core.transfer.TransferFunction
getDerivative, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.

See Also:
Constant Field Values

leftLow

double leftLow

leftHigh

double leftHigh

rightLow

double rightLow

rightHigh

double rightHigh
Constructor Detail

Trapezoid

public Trapezoid()
Creates an instance of Trapezoid transfer function


Trapezoid

public Trapezoid(double leftLow,
                 double leftHigh,
                 double rightLow,
                 double rightHigh)
Creates an instance of Trapezoid transfer function with the specified setting.


Trapezoid

public Trapezoid(java.util.Properties properties)
Creates an instance of Trapezoid transfer function with the specified properties.

Method Detail

getOutput

public double getOutput(double net)
Description copied from class: TransferFunction
Returns the ouput of this function.

Specified by:
getOutput in class TransferFunction
Parameters:
net - net input

setLeftLow

public void setLeftLow(double leftLow)
Sets left low point of trapezoid function

Parameters:
leftLow - left low point of trapezoid function

setLeftHigh

public void setLeftHigh(double leftHigh)
Sets left high point of trapezoid function

Parameters:
leftHigh - left high point of trapezoid function

setRightLow

public void setRightLow(double rightLow)
Sets right low point of trapezoid function

Parameters:
rightLow - right low point of trapezoid function

setRightHigh

public void setRightHigh(double rightHigh)
Sets right high point of trapezoid function

Parameters:
rightHigh - right high point of trapezoid function

getLeftLow

public double getLeftLow()
Returns left low point of trapezoid function

Returns:
left low point of trapezoid function

getLeftHigh

public double getLeftHigh()
Returns left high point of trapezoid function

Returns:
left high point of trapezoid function

getRightLow

public double getRightLow()
Returns right low point of trapezoid function

Returns:
right low point of trapezoid function

getRightHigh

public double getRightHigh()
Returns right high point of trapezoid function

Returns:
right high point of trapezoid function

Neuroph