public class GaussNeighbourhoodFunction extends java.lang.Object implements NeighbourhoodFunctionModel
Constructor and Description |
---|
GaussNeighbourhoodFunction(int radius)
Creates a new instance of GaussNeighbourhoodFunction with
specified radius
|
Modifier and Type | Method and Description |
---|---|
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.
|
public GaussNeighbourhoodFunction(int radius)
radius
- Radiuspublic double[] getParameters()
getParameters
in interface NeighbourhoodFunctionModel
public void setParameters(double[] parameters)
setParameters
in interface NeighbourhoodFunctionModel
parameters
- constat valuepublic double getValue(int distance)
getValue
in interface NeighbourhoodFunctionModel
distance
- distance value