topology
Class GaussNeighbourhoodFunction

java.lang.Object
  extended by topology.GaussNeighbourhoodFunction
All Implemented Interfaces:
NeighbourhoodFunctionModel

public class GaussNeighbourhoodFunction
extends java.lang.Object
implements NeighbourhoodFunctionModel

Gauss neighbourhood Function


Constructor Summary
GaussNeighbourhoodFunction(int radius)
          Creates a new instance of GaussNeighbourhoodFunction with specified radius
 
Method Summary
 double[] getParameters()
          Return array containing parameter r - radius
 double getValue(int distance)
          Return value calculated by function describe as exp(-(k^2))/(2*r^2))
 void setParameters(double[] parameters)
          Set parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GaussNeighbourhoodFunction

public GaussNeighbourhoodFunction(int radius)
Creates a new instance of GaussNeighbourhoodFunction with specified radius

Parameters:
radius - Radius
Method Detail

getParameters

public double[] getParameters()
Return array containing parameter r - radius

Specified by:
getParameters in interface NeighbourhoodFunctionModel
Returns:
constant parameter

setParameters

public void setParameters(double[] parameters)
Set parameters. r - radius

Specified by:
setParameters in interface NeighbourhoodFunctionModel
Parameters:
parameters - constat value

getValue

public double getValue(int distance)
Return value calculated by function describe as exp(-(k^2))/(2*r^2))

Specified by:
getValue in interface NeighbourhoodFunctionModel
Parameters:
distance - distance value
Returns:
value of function factor