public class Trapezoid extends TransferFunction implements Serializable
output
Constructor and Description |
---|
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(Properties properties)
Creates an instance of Trapezoid transfer function with the specified
properties.
|
Modifier and Type | Method and Description |
---|---|
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
|
getDerivative
public Trapezoid()
public Trapezoid(double leftLow, double leftHigh, double rightLow, double rightHigh)
public Trapezoid(Properties properties)
public double getOutput(double net)
TransferFunction
getOutput
in class TransferFunction
net
- total inputpublic void setLeftLow(double leftLow)
leftLow
- left low point of trapezoid functionpublic void setLeftHigh(double leftHigh)
leftHigh
- left high point of trapezoid functionpublic void setRightLow(double rightLow)
rightLow
- right low point of trapezoid functionpublic void setRightHigh(double rightHigh)
rightHigh
- right high point of trapezoid functionpublic double getLeftLow()
public double getLeftHigh()
public double getRightLow()
public double getRightHigh()
Copyright © 2019 Neuroph Project. All rights reserved.