org.neuroph.core.transfer
Class Ramp
- java.lang.Object
-
- org.neuroph.core.transfer.TransferFunction
-
- org.neuroph.core.transfer.Ramp
-
- All Implemented Interfaces:
- java.io.Serializable
public class Ramp extends TransferFunction implements java.io.Serializable
Ramp neuron transfer function.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Ramp()Creates an instance of Ramp transfer function with default settingsRamp(double slope, double xLow, double xHigh, double yLow, double yHigh)Creates an instance of Ramp transfer function with specified settingsRamp(Properties properties)Creates an instance of Ramp transfer function with specified properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetOutput(double net)Returns the ouput of this function.doublegetXHigh()Returns threshold value for the high output leveldoublegetXLow()Returns threshold value for the low output leveldoublegetYHigh()Returns output value for high output leveldoublegetYLow()Returns output value for low output levelvoidsetXHigh(double x)Sets threshold for the high output levelvoidsetXLow(double x)Sets threshold for the low output levelvoidsetYHigh(double y)Sets output value for the high output levelvoidsetYLow(double y)Sets output value for the low output level-
Methods inherited from class org.neuroph.core.transfer.TransferFunction
getDerivative
-
-
-
-
Constructor Detail
-
Ramp
public Ramp()
Creates an instance of Ramp transfer function with default settings
-
Ramp
public Ramp(double slope, double xLow, double xHigh, double yLow, double yHigh)Creates an instance of Ramp transfer function with specified settings
-
Ramp
public Ramp(Properties properties)
Creates an instance of Ramp transfer function with 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
-
getXLow
public double getXLow()
Returns threshold value for the low output level- Returns:
- threshold value for the low output level
-
setXLow
public void setXLow(double x)
Sets threshold for the low output level- Parameters:
x- threshold value for the low output level
-
getXHigh
public double getXHigh()
Returns threshold value for the high output level- Returns:
- threshold value for the high output level
-
setXHigh
public void setXHigh(double x)
Sets threshold for the high output level- Parameters:
x- threshold value for the high output level
-
getYLow
public double getYLow()
Returns output value for low output level- Returns:
- output value for low output level
-
setYLow
public void setYLow(double y)
Sets output value for the low output level- Parameters:
y- value for the low output level
-
getYHigh
public double getYHigh()
Returns output value for high output level- Returns:
- output value for high output level
-
setYHigh
public void setYHigh(double y)
Sets output value for the high output level- Parameters:
y- value for the high output level
-
-
DMelt 3.0 © DataMelt by jWork.ORG