Class DouglasPeuckerGeneralizer
java.lang.Object
org.n52.io.type.quantity.generalize.Generalizer<Data<QuantityValue>>
org.n52.io.type.quantity.generalize.DouglasPeuckerGeneralizer
Implementation of a generalizer using the Douglas-Peucker Algorithm
Characteristic quantity values are picked depending on a given tolerance value. Values that
differ less than this tolerance value from an ideal line between some minima and maxima will be
dropped.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.n52.io.type.quantity.generalize.Generalizer
getParameters
-
Constructor Details
-
DouglasPeuckerGeneralizer
Creates a new instance. Use static constructors for instantiation.- Parameters:
parameters- Configuration parameters. Ifnulla fallback configuration will be used.
-
-
Method Details
-
getName
- Specified by:
getNamein classGeneralizer<Data<QuantityValue>>
-
generalize
public DataCollection<Data<QuantityValue>> generalize(DataCollection<Data<QuantityValue>> data) throws GeneralizerException - Specified by:
generalizein classGeneralizer<Data<QuantityValue>>- Throws:
GeneralizerException
-