org.neuroph.core.transfer
Class Sin
java.lang.Object
org.neuroph.core.transfer.TransferFunction
org.neuroph.core.transfer.Sin
- All Implemented Interfaces:
- Serializable
public class Sin
- extends TransferFunction
Sin neuron transfer function.
output = sin(input)
- Author:
- Zoran Sevarac
- See Also:
- Serialized Form
Constructor Summary |
Sin()
|
Method Summary |
double |
getDerivative(double net)
Returns the first derivative of this function. |
double |
getOutput(double net)
Returns the ouput of this function. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sin
public Sin()
getOutput
public double getOutput(double net)
- Description copied from class:
TransferFunction
- Returns the ouput of this function.
- Specified by:
getOutput
in class TransferFunction
- Parameters:
net
- net input
getDerivative
public double getDerivative(double net)
- Description copied from class:
TransferFunction
- Returns the first derivative of this function.
- Overrides:
getDerivative
in class TransferFunction
- Parameters:
net
- net input
Copyright © 2012. All Rights Reserved.