nl.tudelft.simulation.jstats.filters
Class MaxDiffFilter
java.lang.Object
nl.tudelft.simulation.language.filters.AbstractFilter
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
Constructor Summary |
MaxDiffFilter(double acceptedDifferencePercentage)
constructs a new MaxDiffFilter |
MaxDiffFilter
public MaxDiffFilter(double acceptedDifferencePercentage)
- constructs a new MaxDiffFilter
- Parameters:
acceptedDifferencePercentage
- the maximum accepted difference
percentage, e.g. 10%
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.