databionics.esom.neighborhood
Class BubbleNeighborhood

java.lang.Object
  extended by databionics.esom.neighborhood.Neighborhood
      extended by databionics.esom.neighborhood.BubbleNeighborhood

public class BubbleNeighborhood
extends Neighborhood

Very simple neighborhood kernel with a constant weight of 1. Sometimes called plateu instead of bubble.


Field Summary
protected static org.apache.log4j.Logger log
          interface to log4j system
 
Fields inherited from class databionics.esom.neighborhood.Neighborhood
radius, scaling
 
Constructor Summary
BubbleNeighborhood()
          Create a new neighborhood object
BubbleNeighborhood(int radius, double scaling)
          Create a new neighborhood object
 
Method Summary
protected  double calculate(int distance)
          Calculate the weight value for this distance.
 void init()
          No initialization needed.
 
Methods inherited from class databionics.esom.neighborhood.Neighborhood
get, setRadius, setScaling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
interface to log4j system

Constructor Detail

BubbleNeighborhood

public BubbleNeighborhood()
Create a new neighborhood object


BubbleNeighborhood

public BubbleNeighborhood(int radius,
                          double scaling)
Create a new neighborhood object

Parameters:
radius - radius of kernel
scaling - scaling factor for all weights
Method Detail

calculate

protected double calculate(int distance)
Calculate the weight value for this distance. The weight is always 1.

Specified by:
calculate in class Neighborhood
Parameters:
distance - distance from center ([0..radius])
Returns:
weight value for this distance

init

public void init()
No initialization needed. Empty method.

Specified by:
init in class Neighborhood


Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.