nl.tudelft.simulation.jstats.filters
Class MaxDiffFilter

java.lang.Object
  extended by nl.tudelft.simulation.language.filters.AbstractFilter
      extended by nl.tudelft.simulation.jstats.filters.MaxDiffFilter
All Implemented Interfaces:
Serializable, Filterinterface

public class MaxDiffFilter
extends AbstractFilter

The MaxDiffFilter accepts entries if their value> percentage of the last received Value.

(c) copyright 2004 Delft University of Technology , the Netherlands.

See for project information www.simulation.tudelft.nl/dsol

License of use: Lesser General Public License (LGPL) , no warranty

Since:
1.2
Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:25:44 $
Author:
Niels Lang Peter Jacobs
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nl.tudelft.simulation.language.filters.AbstractFilter
inverted
 
Constructor Summary
MaxDiffFilter(double acceptedDifferencePercentage)
          constructs a new MaxDiffFilter
 
Method Summary
 boolean filter(Object entry)
          filters based on the maximum difference.
 String getCriterium()
           
 
Methods inherited from class nl.tudelft.simulation.language.filters.AbstractFilter
accept, and, isInverted, or, setInverted, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MaxDiffFilter

public MaxDiffFilter(double acceptedDifferencePercentage)
constructs a new MaxDiffFilter

Parameters:
acceptedDifferencePercentage - the maximum accepted difference percentage, e.g. 10%
Method Detail

filter

public boolean filter(Object entry)
filters based on the maximum difference.

Specified by:
filter in class AbstractFilter
Parameters:
entry - we expect a double[2] representing x,y as input.
Returns:
whether to accept the entry
See Also:
AbstractFilter.filter(java.lang.Object)

getCriterium

public String getCriterium()
Specified by:
getCriterium in interface Filterinterface
Specified by:
getCriterium in class AbstractFilter
See Also:
Filterinterface.getCriterium()


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.