|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.mathutil.rbf.BasicRBF
org.encog.mathutil.rbf.GaussianFunction
public class GaussianFunction
Multi-dimensional gaussian function. Do not use this to implement a 1d function, simply use GaussianFunction for that.
Constructor Summary | |
---|---|
GaussianFunction()
Default constructor, used for reflection. |
|
GaussianFunction(double peak,
double[] center,
double width)
Construct a multi-dimension Gaussian function with the specified peak, centers and widths. |
|
GaussianFunction(double center,
double peak,
double width)
Construct a single-dimension Gaussian function with the specified peak, centers and widths. |
|
GaussianFunction(int dimensions)
Create centered at zero, width 0, and peak 0. |
Method Summary | |
---|---|
double |
calculate(double[] x)
Calculate the result from the function. |
Methods inherited from class org.encog.mathutil.rbf.BasicRBF |
---|
getCenter, getCenters, getDimensions, getPeak, getWidth, setCenters, setPeak, setWidth, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GaussianFunction()
public GaussianFunction(double center, double peak, double width)
peak
- The peak for all dimensions.center
- The centers for each dimension.width
- The widths for each dimension.public GaussianFunction(double peak, double[] center, double width)
peak
- The peak for all dimensions.center
- The centers for each dimension.width
- The widths for each dimension.public GaussianFunction(int dimensions)
dimensions
- The number of dimensions.Method Detail |
---|
public final double calculate(double[] x)
x
- The parameters for the function, one for each dimension.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |