org.encog.mathutil.rbf
public class MexicanHatFunction extends BasicRBF
Constructor and Description |
---|
MexicanHatFunction(double peak,
double[] center,
double width)
Construct a multi-dimension Mexican hat function with the specified peak,
centers and widths.
|
MexicanHatFunction(double center,
double peak,
double width)
Construct a single-dimension Mexican hat function with the specified
peak, centers and widths.
|
MexicanHatFunction(int dimensions)
Create centered at zero, width 0, and peak 0.
|
Modifier and Type | Method and Description |
---|---|
double |
calculate(double[] x)
Calculate the result from the function.
|
getCenter, getCenters, getDimensions, getPeak, getWidth, setCenters, setPeak, setWidth, toString
public MexicanHatFunction(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 MexicanHatFunction(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 MexicanHatFunction(int dimensions)
dimensions
- Dimensions.Copyright © 2014. All Rights Reserved.