databionics.esom.renderer.background
Class PMatrixRenderer

java.lang.Object
  extended by databionics.esom.renderer.background.BackgroundRenderer
      extended by databionics.esom.renderer.background.PMatrixRenderer
All Implemented Interfaces:
BmChangeListener, LrnChangeListener, ParamChangeListener, WtsChangeListener

public class PMatrixRenderer
extends BackgroundRenderer

P-Matrix background renderer. The height is the Pareto density of the data evaluated at the neuron.


Field Summary
protected static org.apache.log4j.Logger log
          interface to log4j system
protected  ParetoDensity pdens
          cache distance percentiles
protected  int percentile
          percentile parameter
protected  double radius
          radius parameter
protected  boolean useRadius
          flag whether to use radius instead of percentile
 
Fields inherited from class databionics.esom.renderer.background.BackgroundRenderer
bmChanged, cacheMatrix, lrnChanged, paramChanged, renderer, wtsChanged
 
Constructor Summary
PMatrixRenderer()
          Standard constructor
PMatrixRenderer(double radius)
          Constructor with radius.
PMatrixRenderer(int percentile)
          Constructor with percentile.
 
Method Summary
 ParetoDensity getParetoDensity()
          Get the densitsy estimation used for the P-Matrix
 int getPercentile()
          Get the percentile parameter
 double getRadius()
          Get the radius parameter.
 void init()
          Optional initialization of background renderer.
 void init(Renderer renderer)
           
 boolean isColorBackground()
          Whether this background renderer returns color matrix.
 cern.colt.matrix.DoubleMatrix2D render(Renderer renderer)
          Calculate the height above each neuron with the P-Matrix method.
 void setPercentile(int percentile)
          Set the percentile parameter
 void setRadius()
          Set the radius parameter to the pareto radius
 void setRadius(double radius)
          Set the radius parameter.
 
Methods inherited from class databionics.esom.renderer.background.BackgroundRenderer
bmChanged, getCaption, getRenderer, lrnChanged, paramChanged, resetCache, setRenderer, wtsChanged
 
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


percentile

protected int percentile
percentile parameter


radius

protected double radius
radius parameter


useRadius

protected boolean useRadius
flag whether to use radius instead of percentile


pdens

protected ParetoDensity pdens
cache distance percentiles

Constructor Detail

PMatrixRenderer

public PMatrixRenderer()
Standard constructor


PMatrixRenderer

public PMatrixRenderer(double radius)
Constructor with radius. Used to init radius from command line tools before data is available.


PMatrixRenderer

public PMatrixRenderer(int percentile)
Constructor with percentile. Used to init percentile from command line tools before data is available.

Method Detail

init

public void init(Renderer renderer)

render

public cern.colt.matrix.DoubleMatrix2D render(Renderer renderer)
Calculate the height above each neuron with the P-Matrix method.

Specified by:
render in class BackgroundRenderer
Parameters:
renderer - The invoking Renderer

isColorBackground

public boolean isColorBackground()
Description copied from class: BackgroundRenderer
Whether this background renderer returns color matrix. If false a height matrix is returned.

Specified by:
isColorBackground in class BackgroundRenderer
Returns:
true if this BackgroundRenderer returns colors, false if heights

getParetoDensity

public ParetoDensity getParetoDensity()
Get the densitsy estimation used for the P-Matrix


getPercentile

public int getPercentile()
Get the percentile parameter


setPercentile

public void setPercentile(int percentile)
Set the percentile parameter

Parameters:
percentile - The distance percentile to use for the radius.

getRadius

public double getRadius()
Get the radius parameter.


setRadius

public void setRadius(double radius)
Set the radius parameter.

Parameters:
radius - The radius to set.

setRadius

public void setRadius()
Set the radius parameter to the pareto radius


init

public void init()
Description copied from class: BackgroundRenderer
Optional initialization of background renderer.

Overrides:
init in class BackgroundRenderer


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