org.encog.engine.network.activation
public interface ActivationFunction extends Serializable, Cloneable
Modifier and Type | Method and Description |
---|---|
void |
activationFunction(double[] d,
int start,
int size)
Implements the activation function.
|
ActivationFunction |
clone() |
double |
derivativeFunction(double b,
double a)
Calculate the derivative.
|
String |
getFactoryCode() |
String[] |
getParamNames() |
double[] |
getParams() |
boolean |
hasDerivative() |
void |
setParam(int index,
double value)
Set one of the params for this activation function.
|
void activationFunction(double[] d, int start, int size)
d
- The input array to the activation function.start
- The starting index.size
- The number of values to calculate.double derivativeFunction(double b, double a)
b
- The number to calculate the derivative of, the number "before" the
activation function was applied.a
- The number "after" an activation function has been applied.boolean hasDerivative()
double[] getParams()
void setParam(int index, double value)
index
- The index of the param to set.value
- The value to set.String[] getParamNames()
ActivationFunction clone()
String getFactoryCode()
Copyright © 2014. All Rights Reserved.