Class DouglasPeuckerGeneralizer
- java.lang.Object
-
- org.n52.io.type.quantity.generalize.Generalizer<Data<QuantityValue>>
-
- org.n52.io.type.quantity.generalize.DouglasPeuckerGeneralizer
-
public final class DouglasPeuckerGeneralizer extends Generalizer<Data<QuantityValue>>
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 Constructor Description DouglasPeuckerGeneralizer(IoParameters parameters)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataCollection<Data<QuantityValue>>generalize(DataCollection<Data<QuantityValue>> data)StringgetName()-
Methods inherited from class org.n52.io.type.quantity.generalize.Generalizer
getParameters
-
-
-
-
Constructor Detail
-
DouglasPeuckerGeneralizer
public DouglasPeuckerGeneralizer(IoParameters parameters)
Creates a new instance. Use static constructors for instantiation.- Parameters:
parameters- Configuration parameters. Ifnulla fallback configuration will be used.
-
-
Method Detail
-
getName
public String 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
-
-