org.encog.neural.som.training.basic.neighborhood
Class NeighborhoodRBF
- java.lang.Object
-
- org.encog.neural.som.training.basic.neighborhood.NeighborhoodRBF
-
- All Implemented Interfaces:
- NeighborhoodFunction
public class NeighborhoodRBF extends java.lang.Object implements NeighborhoodFunction
Implements a multi-dimensional RBF neighborhood function.
-
-
Constructor Summary
Constructors Constructor and Description NeighborhoodRBF(int[] size, RBFEnum type)Construct a multi-dimensional neighborhood function.NeighborhoodRBF(RBFEnum type, int x, int y)Construct a 2d neighborhood function based on the sizes for the x and y dimensions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublefunction(int currentNeuron, int bestNeuron)Calculate the value for the multi RBF function.doublegetRadius()RadialBasisFunctiongetRBF()voidsetRadius(double radius)Set the radius.
-
-
-
Constructor Detail
-
NeighborhoodRBF
public NeighborhoodRBF(RBFEnum type, int x, int y)
Construct a 2d neighborhood function based on the sizes for the x and y dimensions.- Parameters:
type- The RBF type to use.x- The size of the x-dimension.y- The size of the y-dimension.
-
NeighborhoodRBF
public NeighborhoodRBF(int[] size, RBFEnum type)Construct a multi-dimensional neighborhood function.- Parameters:
size- The sizes of each dimension.type- The RBF type to use.
-
-
Method Detail
-
function
public double function(int currentNeuron, int bestNeuron)Calculate the value for the multi RBF function.- Specified by:
functionin interfaceNeighborhoodFunction- Parameters:
currentNeuron- The current neuron.bestNeuron- The best neuron.- Returns:
- A percent that determines the amount of training the current neuron should get. Usually 100% when it is the bestNeuron.
-
getRadius
public double getRadius()
- Specified by:
getRadiusin interfaceNeighborhoodFunction- Returns:
- The radius.
-
getRBF
public RadialBasisFunction getRBF()
- Returns:
- The RBF to use.
-
setRadius
public void setRadius(double radius)
Set the radius.- Specified by:
setRadiusin interfaceNeighborhoodFunction- Parameters:
radius- The radius.
-
-
DMelt 3.0 © DataMelt by jWork.ORG