public class MaxDiffFilter
extends nl.tudelft.simulation.language.filters.AbstractFilter
(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
Constructor and Description |
---|
MaxDiffFilter(double acceptedDifferencePercentage)
constructs a new MaxDiffFilter
|
Modifier and Type | Method and Description |
---|---|
boolean |
filter(Object entry)
filters based on the maximum difference.
|
String |
getCriterium() |
public MaxDiffFilter(double acceptedDifferencePercentage)
acceptedDifferencePercentage
- the maximum accepted difference
percentage, e.g. 10%public boolean filter(Object entry)
filter
in class nl.tudelft.simulation.language.filters.AbstractFilter
entry
- we expect a double[2] representing x,y as input.AbstractFilter.filter(java.lang.Object)
public String getCriterium()
getCriterium
in interface nl.tudelft.simulation.language.filters.Filterinterface
getCriterium
in class nl.tudelft.simulation.language.filters.AbstractFilter
Filterinterface.getCriterium()
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.