org.neuroph.core.transfer
Class Linear
- java.lang.Object
-
- org.neuroph.core.transfer.TransferFunction
-
- org.neuroph.core.transfer.Linear
-
- All Implemented Interfaces:
- java.io.Serializable
public class Linear extends TransferFunction implements java.io.Serializable
Linear neuron transfer function.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Linear()Creates an instance of Linear transfer functionLinear(double slope)Creates an instance of Linear transfer function with specified value for getSlope parametar.Linear(Properties properties)Creates an instance of Linear transfer function with specified properties
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetDerivative(double net)Returns the first derivative of this function.doublegetOutput(double net)Returns the ouput of this function.doublegetSlope()Returns the slope parametar of this functionvoidsetSlope(double slope)Sets the slope parametar for this function
-
-
-
Constructor Detail
-
Linear
public Linear()
Creates an instance of Linear transfer function
-
Linear
public Linear(double slope)
Creates an instance of Linear transfer function with specified value for getSlope parametar.
-
Linear
public Linear(Properties properties)
Creates an instance of Linear transfer function with specified properties
-
-
Method Detail
-
getSlope
public double getSlope()
Returns the slope parametar of this function- Returns:
- slope parametar of this function
-
setSlope
public void setSlope(double slope)
Sets the slope parametar for this function- Parameters:
slope- value for the slope parametar
-
getOutput
public double getOutput(double net)
Description copied from class:TransferFunctionReturns the ouput of this function.- Specified by:
getOutputin classTransferFunction- Parameters:
net- total input
-
getDerivative
public double getDerivative(double net)
Description copied from class:TransferFunctionReturns the first derivative of this function. Note: should this method should be abstract?- Overrides:
getDerivativein classTransferFunction- Parameters:
net- total input
-
-
DMelt 3.0 © DataMelt by jWork.ORG