|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.engine.network.activation.ActivationGaussian
public class ActivationGaussian
An activation function based on the gaussian function.
| Field Summary | |
|---|---|
static int |
PARAM_GAUSSIAN_CENTER
The offset to the parameter that holds the width. |
static int |
PARAM_GAUSSIAN_PEAK
The offset to the parameter that holds the peak. |
static int |
PARAM_GAUSSIAN_WIDTH
The offset to the parameter that holds the width. |
| Constructor Summary | |
|---|---|
ActivationGaussian()
|
|
ActivationGaussian(double center,
double peak,
double width)
Create a gaussian activation function. |
|
| Method Summary | |
|---|---|
void |
activationFunction(double[] x,
int start,
int size)
Implements the activation function. |
ActivationFunction |
clone()
|
double |
derivativeFunction(double b,
double a)
Calculate the derivative. |
double |
getCenter()
|
String[] |
getParamNames()
|
double[] |
getParams()
|
double |
getWidth()
|
boolean |
hasDerivative()
|
void |
setParam(int index,
double value)
Set one of the params for this activation function. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PARAM_GAUSSIAN_CENTER
public static final int PARAM_GAUSSIAN_PEAK
public static final int PARAM_GAUSSIAN_WIDTH
| Constructor Detail |
|---|
public ActivationGaussian(double center,
double peak,
double width)
center - The center of the curve.peak - The peak of the curve.width - The width of the curve.public ActivationGaussian()
| Method Detail |
|---|
public final ActivationFunction clone()
clone in interface ActivationFunctionclone in class Objectpublic final double getWidth()
public final double getCenter()
public final boolean hasDerivative()
hasDerivative in interface ActivationFunction
public final void activationFunction(double[] x,
int start,
int size)
activationFunction in interface ActivationFunctionx - The input array to the activation function.start - The starting index.size - The number of values to calculate.
public final double derivativeFunction(double b,
double a)
derivativeFunction in interface ActivationFunctionb - 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.
public final String[] getParamNames()
getParamNames in interface ActivationFunctionpublic final double[] getParams()
getParams in interface ActivationFunction
public final void setParam(int index,
double value)
setParam in interface ActivationFunctionindex - The index of the param to set.value - The value to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||