org.encog.neural.som.training.basic.neighborhood
public class NeighborhoodRBF extends Object implements NeighborhoodFunction
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.
|
Modifier and Type | Method and Description |
---|---|
double |
function(int currentNeuron,
int bestNeuron)
Calculate the value for the multi RBF function.
|
double |
getRadius() |
RadialBasisFunction |
getRBF() |
void |
setRadius(double radius)
Set the radius.
|
public NeighborhoodRBF(RBFEnum type, int x, int y)
type
- The RBF type to use.x
- The size of the x-dimension.y
- The size of the y-dimension.public NeighborhoodRBF(int[] size, RBFEnum type)
size
- The sizes of each dimension.type
- The RBF type to use.public double function(int currentNeuron, int bestNeuron)
function
in interface NeighborhoodFunction
currentNeuron
- The current neuron.bestNeuron
- The best neuron.public double getRadius()
getRadius
in interface NeighborhoodFunction
public RadialBasisFunction getRBF()
public void setRadius(double radius)
setRadius
in interface NeighborhoodFunction
radius
- The radius.Copyright © 2014. All Rights Reserved.