org.neuroph.core.transfer
Class Trapezoid
- java.lang.Object
-
- org.neuroph.core.transfer.TransferFunction
-
- org.neuroph.core.transfer.Trapezoid
-
- All Implemented Interfaces:
- java.io.Serializable
public class Trapezoid extends TransferFunction implements java.io.Serializable
Fuzzy trapezoid neuron tranfer function.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Trapezoid()Creates an instance of Trapezoid transfer functionTrapezoid(double leftLow, double leftHigh, double rightLow, double rightHigh)Creates an instance of Trapezoid transfer function with the specified setting.Trapezoid(Properties properties)Creates an instance of Trapezoid transfer function with the specified properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetLeftHigh()Returns left high point of trapezoid functiondoublegetLeftLow()Returns left low point of trapezoid functiondoublegetOutput(double net)Returns the ouput of this function.doublegetRightHigh()Returns right high point of trapezoid functiondoublegetRightLow()Returns right low point of trapezoid functionvoidsetLeftHigh(double leftHigh)Sets left high point of trapezoid functionvoidsetLeftLow(double leftLow)Sets left low point of trapezoid functionvoidsetRightHigh(double rightHigh)Sets right high point of trapezoid functionvoidsetRightLow(double rightLow)Sets right low point of trapezoid function-
Methods inherited from class org.neuroph.core.transfer.TransferFunction
getDerivative
-
-
-
-
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(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:TransferFunctionReturns the ouput of this function.- Specified by:
getOutputin classTransferFunction- Parameters:
net- total 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
-
-
DMelt 3.0 © DataMelt by jWork.ORG