org.encog.mathutil.rbf
Class BasicRBF
- java.lang.Object
-
- org.encog.mathutil.rbf.BasicRBF
-
- All Implemented Interfaces:
- java.io.Serializable, RadialBasisFunction
- Direct Known Subclasses:
- GaussianFunction, InverseMultiquadricFunction, MexicanHatFunction, MultiquadricFunction
public abstract class BasicRBF extends java.lang.Object implements RadialBasisFunction
Basic radial basis function. Defines centers for each of the RBF's. All RBF's have a common radius and peak.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description BasicRBF()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetCenter(int dimension)Get the center of this RBD.double[]getCenters()intgetDimensions()doublegetPeak()Get the center of this RBD.doublegetWidth()voidsetCenters(double[] centers)Set the centers.voidsetPeak(double thePeak)Set the peak.voidsetWidth(double theWidth)Set the width.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.encog.mathutil.rbf.RadialBasisFunction
calculate
-
-
-
-
Method Detail
-
getCenter
public final double getCenter(int dimension)
Get the center of this RBD.- Specified by:
getCenterin interfaceRadialBasisFunction- Parameters:
dimension- The dimension to get the center for.- Returns:
- The center of the RBF.
-
getCenters
public final double[] getCenters()
- Specified by:
getCentersin interfaceRadialBasisFunction- Returns:
- Get the centers.
-
getDimensions
public final int getDimensions()
- Specified by:
getDimensionsin interfaceRadialBasisFunction- Returns:
- The dimensions in this RBF.
-
getPeak
public final double getPeak()
Get the center of this RBD.- Specified by:
getPeakin interfaceRadialBasisFunction- Returns:
- The center of the RBF.
-
getWidth
public final double getWidth()
- Specified by:
getWidthin interfaceRadialBasisFunction- Returns:
- The width of the RBF.
-
setCenters
public final void setCenters(double[] centers)
Set the centers.- Specified by:
setCentersin interfaceRadialBasisFunction- Parameters:
centers- The centers.
-
setPeak
public final void setPeak(double thePeak)
Set the peak.- Specified by:
setPeakin interfaceRadialBasisFunction- Parameters:
thePeak- The peak.
-
setWidth
public final void setWidth(double theWidth)
Set the width.- Specified by:
setWidthin interfaceRadialBasisFunction- Parameters:
theWidth- The width.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG