public class FractionNeighbourhoodFunction extends java.lang.Object implements NeighbourhoodFunctionModel
Constructor and Description |
---|
FractionNeighbourhoodFunction()
Creates a new instance of FractionNeighbourhoodFunction with
specified radius
|
Modifier and Type | Method and Description |
---|---|
double[] |
getParameters()
Return an empty array.
|
double |
getValue(int distance)
Return value calculated by function describe as
1.0 / (distance + 1.0)
|
void |
setParameters(double[] parameters)
Set parameters.
|
public FractionNeighbourhoodFunction()
public 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