Class HartleyTransform

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.WindowListener, java.lang.Runnable, java.util.EventListener

    public class HartleyTransform
    extends AlgorithmBase
    The MIT License (MIT) Copyright (c) 2015 Eugeniy Sokol Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    • Constructor Detail

      • HartleyTransform

        public HartleyTransform()
      • HartleyTransform

        public HartleyTransform​(int size)
    • Method Detail

      • finalize

        public void finalize()
        Description copied from class: AlgorithmBase
        Calls garbage collector to release system resources.
        Overrides:
        finalize in class AlgorithmBase
      • show

        public void show​(double[] data,
                         int size)
      • testHartley

        public void testHartley()
      • transform

        public void transform​(double[] data,
                              boolean scaled)
      • back_transform

        public void back_transform​(double[] fht_data)
      • hartley_multiply

        public void hartley_multiply​(double[] fht_data,
                                     double[] fht_fir,
                                     boolean scaled)
      • get_frequency

        public double[] get_frequency​(double[] fht_data,
                                      int number)
      • revbin_permute

        private void revbin_permute​(double[] data)
      • step_addsub

        private void step_addsub​(double[] data,
                                 int ldn)
      • step_rotate

        private void step_rotate​(double[] data,
                                 int ldn)
      • step_addsub8

        private void step_addsub8​(double[] data)
      • step_rotate8

        private void step_rotate8​(double[] data)
      • step_addsub4

        private void step_addsub4​(double[] data)
      • addsub

        private void addsub​(double[] u,
                            double[] v)
      • addsub

        private void addsub​(double[] u,
                            double[] v,
                            double scale)
      • rotate

        private void rotate​(double[] u,
                            double[] v,
                            double c,
                            double s)
      • zabs

        private double zabs​(double zr,
                            double zi)
        zabs computes the absolute value or magnitude of a double precision complex variable zr + j*zi.
        Parameters:
        zr - double
        zi - double
        Returns:
        double
      • runAlgorithm

        public void runAlgorithm()
        Description copied from class: AlgorithmBase
        Actually runs the algorithm. Implemented by inheriting algorithms.
        Specified by:
        runAlgorithm in class AlgorithmBase