databionics.esom.neighborhood
Class ConeNeighborhood
java.lang.Object
databionics.esom.neighborhood.Neighborhood
databionics.esom.neighborhood.CachedNeighborhood
databionics.esom.neighborhood.ConeNeighborhood
public class ConeNeighborhood
- extends CachedNeighborhood
Simple but fast and effective neighborhood kernel with linear decay.
Field Summary |
protected static org.apache.log4j.Logger |
log
interface to log4j system |
Method Summary |
protected double |
calculate(int distance)
Calculate the weight value for this distance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.log4j.Logger log
- interface to log4j system
ConeNeighborhood
public ConeNeighborhood()
- Create a new neighborhood object
ConeNeighborhood
public ConeNeighborhood(int radius,
double scaling)
- Create a new neighborhood object
- Parameters:
radius
- radius of kernelscaling
- scaling factor for all weights
calculate
protected double calculate(int distance)
- Calculate the weight value for this distance.
The center weight is 1.
The weight for the maximum distance radius is 1/(radius+1)
- Specified by:
calculate
in class Neighborhood
- Parameters:
distance
- distance from center ([0..radius])
- Returns:
- weight value for this distance
Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.