org.encog.mathutil.rbf
Class BasicRBF

java.lang.Object
  extended by org.encog.mathutil.rbf.BasicRBF
All Implemented Interfaces:
Serializable, RadialBasisFunction
Direct Known Subclasses:
GaussianFunction, InverseMultiquadricFunction, MexicanHatFunction, MultiquadricFunction

public abstract class BasicRBF
extends 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
BasicRBF()
           
 
Method Summary
 double getCenter(int dimension)
          Get the center of this RBD.
 double[] getCenters()
          
 int getDimensions()
          
 double getPeak()
          Get the center of this RBD.
 double getWidth()
          
 void setCenters(double[] centers)
          Set the centers.
 void setPeak(double peak)
          Set the peak.
 void setWidth(double width)
          Set the width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.encog.engine.network.rbf.RadialBasisFunction
calculate
 

Constructor Detail

BasicRBF

public BasicRBF()
Method Detail

getCenter

public double getCenter(int dimension)
Get the center of this RBD.

Specified by:
getCenter in interface RadialBasisFunction
Parameters:
dimension - The dimension to get the center for.
Returns:
The center of the RBF.

getCenters

public double[] getCenters()

Specified by:
getCenters in interface RadialBasisFunction
Returns:
Get the centers.

getDimensions

public int getDimensions()

Specified by:
getDimensions in interface RadialBasisFunction
Returns:
The dimensions in this RBF.

getPeak

public double getPeak()
Get the center of this RBD.

Specified by:
getPeak in interface RadialBasisFunction
Returns:
The center of the RBF.

getWidth

public double getWidth()

Specified by:
getWidth in interface RadialBasisFunction
Returns:
The width of the RBF.

setCenters

public void setCenters(double[] centers)
Set the centers.

Specified by:
setCenters in interface RadialBasisFunction
Parameters:
centers - The centers.

setWidth

public void setWidth(double width)
Set the width.

Specified by:
setWidth in interface RadialBasisFunction
Parameters:
width - The width.

setPeak

public void setPeak(double peak)
Set the peak.

Specified by:
setPeak in interface RadialBasisFunction
Parameters:
peak - The peak.


Copyright © 2011. All Rights Reserved.