Package com.googlecode.fannj
Class Neuron
- java.lang.Object
-
- com.googlecode.fannj.Neuron
-
public class Neuron extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static ActivationFunction
DEFAULT_ACTIVATION_FUNCTION
static float
DEFAULT_ACTIVATION_STEEPNESS
-
Constructor Summary
Constructors Constructor Description Neuron()
Create a neuron with default activation function: FANN_SIGMOID_STEPWISE and activation steepness = .5Neuron(ActivationFunction activationFunction)
Create a neuron with the specified activation function and default activation steepness = .5Neuron(ActivationFunction activationFunction, float steepness)
Create a neuron with the specified activation function and steepness.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
ActivationFunction
getActivationFunction()
float
getSteepness()
int
hashCode()
-
-
-
Field Detail
-
DEFAULT_ACTIVATION_FUNCTION
public static final ActivationFunction DEFAULT_ACTIVATION_FUNCTION
-
DEFAULT_ACTIVATION_STEEPNESS
public static final float DEFAULT_ACTIVATION_STEEPNESS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Neuron
public Neuron()
Create a neuron with default activation function: FANN_SIGMOID_STEPWISE and activation steepness = .5
-
Neuron
public Neuron(ActivationFunction activationFunction)
Create a neuron with the specified activation function and default activation steepness = .5- Parameters:
activationFunction
-
-
Neuron
public Neuron(ActivationFunction activationFunction, float steepness)
Create a neuron with the specified activation function and steepness.- Parameters:
activationFunction
-steepness
-
-
-
Method Detail
-
getSteepness
public float getSteepness()
-
getActivationFunction
public ActivationFunction getActivationFunction()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-