public class Linear extends TransferFunction implements Serializable
output| Constructor and Description |
|---|
Linear()
Creates an instance of Linear transfer function
|
Linear(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
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDerivative(double net)
Returns the first derivative of this function.
|
double |
getOutput(double net)
Returns the ouput of this function.
|
double |
getSlope()
Returns the slope parametar of this function
|
void |
setSlope(double slope)
Sets the slope parametar for this function
|
public Linear()
public Linear(double slope)
public Linear(Properties properties)
public double getSlope()
public void setSlope(double slope)
slope - value for the slope parametarpublic double getOutput(double net)
TransferFunctiongetOutput in class TransferFunctionnet - total inputpublic double getDerivative(double net)
TransferFunctiongetDerivative in class TransferFunctionnet - total inputCopyright © 2019 Neuroph Project. All rights reserved.