|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.util.math.rbf.GaussianFunctionMulti
public class GaussianFunctionMulti
Multi-dimensional gaussian function. Do not use this to implement a 1d function, simply use GaussianFunction for that.
| Constructor Summary | |
|---|---|
GaussianFunctionMulti(double peak,
double[] center,
double[] width)
Construct a multi-dimension Gaussian function with the specified peak, centers and widths. |
|
GaussianFunctionMulti(int dimensions,
double peak,
double center,
double width)
Construct a Gaussian function with the specified number of dimensions. |
|
| Method Summary | |
|---|---|
double |
calculate(double[] x)
Calculate thre result from the function. |
double |
getCenter(int dimension)
Get the center for the specified dimension. |
int |
getDimensions()
|
double |
getPeak()
Get the center of this RBD. |
double |
getWidth(int dimension)
Get the width for one dimension. |
void |
setWidth(double w)
Set the width for all dimensions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GaussianFunctionMulti(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 GaussianFunctionMulti(int dimensions,
double peak,
double center,
double width)
dimensions - The number of dimensions.peak - The peak used for all dimensions.center - The center used for all dimensions.width - The widths used for all dimensions.| Method Detail |
|---|
public double calculate(double[] x)
calculate in interface RadialBasisFunctionMultix - The parameters for the function, one for each dimension.
public double getCenter(int dimension)
getCenter in interface RadialBasisFunctionMultidimension - The dimension.
public int getDimensions()
getDimensions in interface RadialBasisFunctionMultipublic double getPeak()
RadialBasisFunctionMulti
getPeak in interface RadialBasisFunctionMultipublic double getWidth(int dimension)
getWidth in interface RadialBasisFunctionMultidimension - The dimension.
public void setWidth(double w)
setWidth in interface RadialBasisFunctionMultiw - The width.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||