org.encog.neural.som.training.basic.neighborhood
Class NeighborhoodRBF1D
- java.lang.Object
-
- org.encog.neural.som.training.basic.neighborhood.NeighborhoodRBF1D
-
- All Implemented Interfaces:
- NeighborhoodFunction
public class NeighborhoodRBF1D extends java.lang.Object implements NeighborhoodFunction
A neighborhood function based on an RBF function.
-
-
Constructor Summary
Constructors Constructor and Description NeighborhoodRBF1D(RadialBasisFunction radial)Construct the neighborhood function with the specified radial function.NeighborhoodRBF1D(RBFEnum type)Construct a 1d neighborhood function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublefunction(int currentNeuron, int bestNeuron)Determine how much the current neuron should be affected by training based on its proximity to the winning neuron.doublegetRadius()voidsetRadius(double radius)Set the radius.
-
-
-
Constructor Detail
-
NeighborhoodRBF1D
public NeighborhoodRBF1D(RadialBasisFunction radial)
Construct the neighborhood function with the specified radial function. Generally this will be a Gaussian function but any RBF should do.- Parameters:
radial- The radial basis function to use.
-
NeighborhoodRBF1D
public NeighborhoodRBF1D(RBFEnum type)
Construct a 1d neighborhood function.- Parameters:
type- The RBF type to use.
-
-
Method Detail
-
function
public double function(int currentNeuron, int bestNeuron)Determine how much the current neuron should be affected by training based on its proximity to the winning neuron.- Specified by:
functionin interfaceNeighborhoodFunction- Parameters:
currentNeuron- THe current neuron being evaluated.bestNeuron- The winning neuron.- Returns:
- The ratio for this neuron's adjustment.
-
getRadius
public double getRadius()
- Specified by:
getRadiusin interfaceNeighborhoodFunction- Returns:
- The radius.
-
setRadius
public void setRadius(double radius)
Set the radius.- Specified by:
setRadiusin interfaceNeighborhoodFunction- Parameters:
radius- The new radius.
-
-
DMelt 3.0 © DataMelt by jWork.ORG