Class Decimation

    • Method Detail

      • setEnabled

        public void setEnabled​(boolean enabled)
        Sets true if decimation are enabled.
        Parameters:
        enabled - true if decimation are enabled.
      • isEnabled

        public boolean isEnabled()
        Returns true if decimation are enabled.
        Specified by:
        isEnabled in interface IsDefaultDecimation
        Returns:
        true if decimation are enabled.
      • setAlgorithm

        public void setAlgorithm​(DecimationAlgorithm algorithm)
        Sets the algorithm used by the plugin.
        Parameters:
        algorithm - the algorithm used by the plugin
      • setSamples

        public void setSamples​(double samples)
        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.
        Parameters:
        samples - the number of samples in the output data set
      • getSamples

        public 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.
        Specified by:
        getSamples in interface IsDefaultDecimation
        Returns:
        the number of samples in the output data set
      • setThreshold

        public void setThreshold​(double threshold)
        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.
        Parameters:
        threshold - the number of samples in the current axis range is above this value, the decimation will be triggered
      • getThreshold

        public 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.
        Specified by:
        getThreshold in interface IsDefaultDecimation
        Returns:
        the number of samples in the current axis range is above this value, the decimation will be triggered