de.aitools.aq.graph.util
Class Threshold

java.lang.Object
  extended by de.aitools.aq.graph.util.Threshold
All Implemented Interfaces:
Sparsification

public final class Threshold
extends java.lang.Object
implements Sparsification

Only implements the method isValidValue(...). Return false if the (absolute) value is below a threshold (defined in the constructor).

Version:
$Id: Threshold.java,v 1.1 2011/02/21 20:18:58 dogu3912 Exp $
Author:
johannes.kiesel(/\t)uni-weimar.de

Constructor Summary
Threshold(double cutBelow)
           
 
Method Summary
 void finalize(Graph simGraph)
           
 void init(Vector[] data, Proximity<Vector> proximity)
           
 boolean isValidValue(double value, int fromNode, int toNode)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Threshold

public Threshold(double cutBelow)
Method Detail

init

public void init(Vector[] data,
                 Proximity<Vector> proximity)
Specified by:
init in interface Sparsification

finalize

public void finalize(Graph simGraph)
Specified by:
finalize in interface Sparsification

isValidValue

public boolean isValidValue(double value,
                            int fromNode,
                            int toNode)
Specified by:
isValidValue in interface Sparsification