org.neuroph.core.transfer
Class Gaussian
- java.lang.Object
-
- org.neuroph.core.transfer.TransferFunction
-
- org.neuroph.core.transfer.Gaussian
-
- All Implemented Interfaces:
- java.io.Serializable
public class Gaussian extends TransferFunction implements java.io.Serializable
Gaussian neuron transfer function. -(x^2) / (2 * sigma^2) f(x) = e- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Gaussian()Creates an instance of Gaussian neuron transferGaussian(Properties properties)Creates an instance of Gaussian neuron transfer function with the 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 totalInput)Returns the ouput of this function.doublegetSigma()Returns the sigma parametar of this functionvoidsetSigma(double sigma)Sets the sigma parametar for this function
-
-
-
Constructor Detail
-
Gaussian
public Gaussian()
Creates an instance of Gaussian neuron transfer
-
Gaussian
public Gaussian(Properties properties)
Creates an instance of Gaussian neuron transfer function with the specified properties.- Parameters:
properties- properties of the Gaussian function
-
-
Method Detail
-
getOutput
public double getOutput(double totalInput)
Description copied from class:TransferFunctionReturns the ouput of this function.- Specified by:
getOutputin classTransferFunction- Parameters:
totalInput- 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
-
getSigma
public double getSigma()
Returns the sigma parametar of this function- Returns:
- sigma parametar of this function
-
setSigma
public void setSigma(double sigma)
Sets the sigma parametar for this function- Parameters:
sigma- value for the slope parametar
-
-
DMelt 3.0 © DataMelt by jWork.ORG