|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatabionics.esom.neighborhood.Neighborhood
databionics.esom.neighborhood.CachedNeighborhood
databionics.esom.neighborhood.GaussNeighborhood
public class GaussNeighborhood
Gaussian neighborhood kernel
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
log
interface to log4j system |
protected double |
norm
normalization factor |
protected int |
stddevs
number of standard deviations corresponding to radius |
Fields inherited from class databionics.esom.neighborhood.CachedNeighborhood |
---|
weights |
Fields inherited from class databionics.esom.neighborhood.Neighborhood |
---|
radius, scaling |
Constructor Summary | |
---|---|
GaussNeighborhood()
Create a new neighborhood object. |
|
GaussNeighborhood(int stddevs)
Create a new neighborhood object. |
|
GaussNeighborhood(int radius,
double scaling)
Create a new neighborhood object. |
|
GaussNeighborhood(int radius,
double scaling,
int stddevs)
Create a new neighborhood object. |
Method Summary | |
---|---|
protected double |
calculate(int distance)
Calculate the weight value for this distance. |
void |
init()
Initialize constants and the cache |
Methods inherited from class databionics.esom.neighborhood.CachedNeighborhood |
---|
get |
Methods inherited from class databionics.esom.neighborhood.Neighborhood |
---|
setRadius, setScaling |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger log
protected int stddevs
protected double norm
Constructor Detail |
---|
public GaussNeighborhood()
public GaussNeighborhood(int stddevs)
public GaussNeighborhood(int radius, double scaling, int stddevs)
radius
- radius of kernelscaling
- scaling factor for all weightsstddevs
- number of standard deviations corresponding to radiuspublic GaussNeighborhood(int radius, double scaling)
radius
- radius of kernelscaling
- scaling factor for all weightsMethod Detail |
---|
public void init()
init
in class CachedNeighborhood
offset
- protected double calculate(int distance)
calculate
in class Neighborhood
distance
- distance from center ([0..radius])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |