Documentation of 'org.jtransforms.utils.CommonUtils' Java class
CommonUtils
org.jtransforms.utils

Class CommonUtils



  • public class CommonUtils
    extends java.lang.Object
    Static utility methods.
    • Constructor Detail

      • CommonUtils

        public CommonUtils()
    • Method Detail

      • sleep

        public static void sleep(long millis)
        Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds.
        Parameters:
        millis - the length of time to sleep in milliseconds
      • getThreadsBeginN_1D_FFT_2Threads

        public static long getThreadsBeginN_1D_FFT_2Threads()
        Returns the minimal size of 1D data for which two threads are used.
        Returns:
        the minimal size of 1D data for which two threads are used
      • getThreadsBeginN_1D_FFT_4Threads

        public static long getThreadsBeginN_1D_FFT_4Threads()
        Returns the minimal size of 1D data for which four threads are used.
        Returns:
        the minimal size of 1D data for which four threads are used
      • getThreadsBeginN_2D

        public static long getThreadsBeginN_2D()
        Returns the minimal size of 2D data for which threads are used.
        Returns:
        the minimal size of 2D data for which threads are used
      • getThreadsBeginN_3D

        public static long getThreadsBeginN_3D()
        Returns the minimal size of 3D data for which threads are used.
        Returns:
        the minimal size of 3D data for which threads are used
      • setThreadsBeginN_1D_FFT_2Threads

        public static void setThreadsBeginN_1D_FFT_2Threads(long n)
        Sets the minimal size of 1D data for which two threads are used.
        Parameters:
        n - the minimal size of 1D data for which two threads are used
      • setThreadsBeginN_1D_FFT_4Threads

        public static void setThreadsBeginN_1D_FFT_4Threads(long n)
        Sets the minimal size of 1D data for which four threads are used.
        Parameters:
        n - the minimal size of 1D data for which four threads are used
      • setThreadsBeginN_2D

        public static void setThreadsBeginN_2D(long n)
        Sets the minimal size of 2D data for which threads are used.
        Parameters:
        n - the minimal size of 2D data for which threads are used
      • setThreadsBeginN_3D

        public static void setThreadsBeginN_3D(long n)
        Sets the minimal size of 3D data for which threads are used.
        Parameters:
        n - the minimal size of 3D data for which threads are used
      • resetThreadsBeginN_FFT

        public static void resetThreadsBeginN_FFT()
        Resets the minimal size of 1D data for which two and four threads are used.
      • resetThreadsBeginN

        public static void resetThreadsBeginN()
        Resets the minimal size of 2D and 3D data for which threads are used.
      • isUseLargeArrays

        public static boolean isUseLargeArrays()
        Returns the value of useLargeArrays variable.
        Returns:
        the value of useLargeArrays variable
      • setUseLargeArrays

        public static void setUseLargeArrays(boolean useLargeArrays)
        Sets the value of useLargeArrays variable.
        Parameters:
        useLargeArrays - the value of useLargeArrays variable
      • nextPow2

        public static int nextPow2(int x)
        Returns the closest power-of-two number greater than or equal to x.
        Parameters:
        x - input value
        Returns:
        the closest power-of-two number greater than or equal to x
      • nextPow2

        public static long nextPow2(long x)
        Returns the closest power-of-two number greater than or equal to x.
        Parameters:
        x - input value
        Returns:
        the closest power-of-two number greater than or equal to x
      • prevPow2

        public static int prevPow2(int x)
        Returns the closest power-of-two number less than or equal to x.
        Parameters:
        x - input value
        Returns:
        the closest power-of-two number less then or equal to x
      • prevPow2

        public static long prevPow2(long x)
        Returns the closest power-of-two number less than or equal to x.
        Parameters:
        x - input value
        Returns:
        the closest power-of-two number less then or equal to x
      • isPowerOf2

        public static boolean isPowerOf2(int x)
        Checks if x is a power-of-two number.
        Parameters:
        x - input value
        Returns:
        true if x is a power-of-two number
      • isPowerOf2

        public static boolean isPowerOf2(long x)
        Checks if x is a power-of-two number.
        Parameters:
        x - input value
        Returns:
        true if x is a power-of-two number
      • getReminder

        public static long getReminder(long n,
                                       int[] factors)
      • makeipt

        public static void makeipt(int nw,
                                   int[] ip)
      • makewt

        public static void makewt(int nw,
                                  int[] ip,
                                  double[] w)
      • makect

        public static void makect(int nc,
                                  double[] c,
                                  int startc,
                                  int[] ip)
      • makect

        public static void makect(int nc,
                                  float[] c,
                                  int startc,
                                  int[] ip)
      • makewt

        public static void makewt(int nw,
                                  int[] ip,
                                  float[] w)
      • cftfsub

        public static void cftfsub(int n,
                                   double[] a,
                                   int offa,
                                   int[] ip,
                                   int nw,
                                   double[] w)
      • cftbsub

        public static void cftbsub(int n,
                                   double[] a,
                                   int offa,
                                   int[] ip,
                                   int nw,
                                   double[] w)
      • bitrv2

        public static void bitrv2(int n,
                                  int[] ip,
                                  double[] a,
                                  int offa)
      • bitrv2conj

        public static void bitrv2conj(int n,
                                      int[] ip,
                                      double[] a,
                                      int offa)
      • bitrv216

        public static void bitrv216(double[] a,
                                    int offa)
      • bitrv216neg

        public static void bitrv216neg(double[] a,
                                       int offa)
      • bitrv208

        public static void bitrv208(double[] a,
                                    int offa)
      • bitrv208neg

        public static void bitrv208neg(double[] a,
                                       int offa)
      • cftf1st

        public static void cftf1st(int n,
                                   double[] a,
                                   int offa,
                                   double[] w,
                                   int startw)
      • cftb1st

        public static void cftb1st(int n,
                                   double[] a,
                                   int offa,
                                   double[] w,
                                   int startw)
      • cftrec4_th

        public static void cftrec4_th(int n,
                                      double[] a,
                                      int offa,
                                      int nw,
                                      double[] w)
      • cftrec4

        public static void cftrec4(int n,
                                   double[] a,
                                   int offa,
                                   int nw,
                                   double[] w)
      • cfttree

        public static int cfttree(int n,
                                  int j,
                                  int k,
                                  double[] a,
                                  int offa,
                                  int nw,
                                  double[] w)
      • cftleaf

        public static void cftleaf(int n,
                                   int isplt,
                                   double[] a,
                                   int offa,
                                   int nw,
                                   double[] w)
      • cftmdl1

        public static void cftmdl1(int n,
                                   double[] a,
                                   int offa,
                                   double[] w,
                                   int startw)
      • cftmdl2

        public static void cftmdl2(int n,
                                   double[] a,
                                   int offa,
                                   double[] w,
                                   int startw)
      • cftfx41

        public static void cftfx41(int n,
                                   double[] a,
                                   int offa,
                                   int nw,
                                   double[] w)
      • cftf161

        public static void cftf161(double[] a,
                                   int offa,
                                   double[] w,
                                   int startw)
      • cftf162

        public static void cftf162(double[] a,
                                   int offa,
                                   double[] w,
                                   int startw)
      • cftf081

        public static void cftf081(double[] a,
                                   int offa,
                                   double[] w,
                                   int startw)
      • cftf082

        public static void cftf082(double[] a,
                                   int offa,
                                   double[] w,
                                   int startw)
      • cftf040

        public static void cftf040(double[] a,
                                   int offa)
      • cftb040

        public static void cftb040(double[] a,
                                   int offa)
      • cftx020

        public static void cftx020(double[] a,
                                   int offa)
      • cftxb020

        public static void cftxb020(double[] a,
                                    int offa)
      • cftxc020

        public static void cftxc020(double[] a,
                                    int offa)
      • rftfsub

        public static void rftfsub(int n,
                                   double[] a,
                                   int offa,
                                   int nc,
                                   double[] c,
                                   int startc)
      • rftbsub

        public static void rftbsub(int n,
                                   double[] a,
                                   int offa,
                                   int nc,
                                   double[] c,
                                   int startc)
      • dctsub

        public static void dctsub(int n,
                                  double[] a,
                                  int offa,
                                  int nc,
                                  double[] c,
                                  int startc)
      • cftfsub

        public static void cftfsub(int n,
                                   float[] a,
                                   int offa,
                                   int[] ip,
                                   int nw,
                                   float[] w)
      • cftbsub

        public static void cftbsub(int n,
                                   float[] a,
                                   int offa,
                                   int[] ip,
                                   int nw,
                                   float[] w)
      • bitrv2

        public static void bitrv2(int n,
                                  int[] ip,
                                  float[] a,
                                  int offa)
      • bitrv2conj

        public static void bitrv2conj(int n,
                                      int[] ip,
                                      float[] a,
                                      int offa)
      • bitrv216

        public static void bitrv216(float[] a,
                                    int offa)
      • bitrv216neg

        public static void bitrv216neg(float[] a,
                                       int offa)
      • bitrv216neg

        public static void bitrv216neg(FloatLargeArray a,
                                       long offa)
      • bitrv208

        public static void bitrv208(float[] a,
                                    int offa)
      • bitrv208neg

        public static void bitrv208neg(float[] a,
                                       int offa)
      • bitrv208neg

        public static void bitrv208neg(FloatLargeArray a,
                                       long offa)
      • cftf1st

        public static void cftf1st(int n,
                                   float[] a,
                                   int offa,
                                   float[] w,
                                   int startw)
      • cftb1st

        public static void cftb1st(int n,
                                   float[] a,
                                   int offa,
                                   float[] w,
                                   int startw)
      • cftrec4_th

        public static void cftrec4_th(int n,
                                      float[] a,
                                      int offa,
                                      int nw,
                                      float[] w)
      • cftrec4

        public static void cftrec4(int n,
                                   float[] a,
                                   int offa,
                                   int nw,
                                   float[] w)
      • cfttree

        public static int cfttree(int n,
                                  int j,
                                  int k,
                                  float[] a,
                                  int offa,
                                  int nw,
                                  float[] w)
      • cftleaf

        public static void cftleaf(int n,
                                   int isplt,
                                   float[] a,
                                   int offa,
                                   int nw,
                                   float[] w)
      • cftmdl1

        public static void cftmdl1(int n,
                                   float[] a,
                                   int offa,
                                   float[] w,
                                   int startw)
      • cftmdl2

        public static void cftmdl2(int n,
                                   float[] a,
                                   int offa,
                                   float[] w,
                                   int startw)
      • cftfx41

        public static void cftfx41(int n,
                                   float[] a,
                                   int offa,
                                   int nw,
                                   float[] w)
      • cftf161

        public static void cftf161(float[] a,
                                   int offa,
                                   float[] w,
                                   int startw)
      • cftf162

        public static void cftf162(float[] a,
                                   int offa,
                                   float[] w,
                                   int startw)
      • cftf081

        public static void cftf081(float[] a,
                                   int offa,
                                   float[] w,
                                   int startw)
      • cftf082

        public static void cftf082(float[] a,
                                   int offa,
                                   float[] w,
                                   int startw)
      • cftf040

        public static void cftf040(float[] a,
                                   int offa)
      • cftb040

        public static void cftb040(float[] a,
                                   int offa)
      • cftx020

        public static void cftx020(float[] a,
                                   int offa)
      • cftxb020

        public static void cftxb020(float[] a,
                                    int offa)
      • cftxc020

        public static void cftxc020(float[] a,
                                    int offa)
      • rftfsub

        public static void rftfsub(int n,
                                   float[] a,
                                   int offa,
                                   int nc,
                                   float[] c,
                                   int startc)
      • rftbsub

        public static void rftbsub(int n,
                                   float[] a,
                                   int offa,
                                   int nc,
                                   float[] c,
                                   int startc)
      • dctsub

        public static void dctsub(int n,
                                  float[] a,
                                  int offa,
                                  int nc,
                                  float[] c,
                                  int startc)
      • scale

        public static void scale(int n,
                                 double m,
                                 double[] a,
                                 int offa,
                                 boolean complex)
      • scale

        public static void scale(long nl,
                                 double m,
                                 DoubleLargeArray a,
                                 long offa,
                                 boolean complex)
      • scale

        public static void scale(int n,
                                 float m,
                                 float[] a,
                                 int offa,
                                 boolean complex)
      • scale

        public static void scale(long nl,
                                 float m,
                                 FloatLargeArray a,
                                 long offa,
                                 boolean complex)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.