public final class DefaultDecimation extends Object implements IsDefaultDecimation
Modifier and Type | Method and Description |
---|---|
DecimationAlgorithm |
getAlgorithm()
Returns the algorithm used by the plugin.
|
double |
getSamples()
If the
DecimationAlgorithm.LTTB algorithm is used, this is the number of samples in the output data set.Defaults to the canvas width to pick 1 sample per pixel. |
double |
getThreshold()
If the number of samples in the current axis range is above this value, the decimation will be triggered.
Defaults to 4 times the canvas width. The number of point after decimation can be higher than the threshold value. |
boolean |
isEnabled()
Returns
true if decimation are enabled. |
public boolean isEnabled()
IsDefaultDecimation
true
if decimation are enabled.isEnabled
in interface IsDefaultDecimation
true
if decimation are enabled.public DecimationAlgorithm getAlgorithm()
IsDefaultDecimation
getAlgorithm
in interface IsDefaultDecimation
public double getSamples()
IsDefaultDecimation
DecimationAlgorithm.LTTB
algorithm is used, this is the number of samples in the output data set.getSamples
in interface IsDefaultDecimation
public double getThreshold()
IsDefaultDecimation
getThreshold
in interface IsDefaultDecimation