[10:21] static (extern: com.lehman.aussom.AussomCommonUtils) extends: object
Threading and configuration helpers from org.jtransforms.utils.CommonUtils. These set or read the thresholds at which JTransforms switches between single and multi-threaded paths, plus a few small power-of-two utilities.
getThreadsBeginN_1D_FFT_2Threads ()
Returns the threshold at which 1D FFTs switch to two threads.
A long with the threshold.setThreadsBeginN_1D_FFT_2Threads (int N)
Sets the threshold at which 1D FFTs switch to two threads.
N is the new threshold.getThreadsBeginN_1D_FFT_4Threads ()
Returns the threshold at which 1D FFTs switch to four threads.
A long with the threshold.setThreadsBeginN_1D_FFT_4Threads (int N)
Sets the threshold at which 1D FFTs switch to four threads.
N is the new threshold.getThreadsBeginN_2D ()
Returns the 2D transform multi-thread threshold.
A long with the threshold.setThreadsBeginN_2D (int N)
Sets the 2D transform multi-thread threshold.
N is the new threshold.getThreadsBeginN_3D ()
Returns the 3D transform multi-thread threshold.
A long with the threshold.setThreadsBeginN_3D (int N)
Sets the 3D transform multi-thread threshold.
N is the new threshold.resetThreadsBeginN_FFT ()
Resets all FFT thread thresholds to their defaults.
resetThreadsBeginN ()
Resets all transform thread thresholds to their defaults.
isUseLargeArrays ()
Returns whether JTransforms uses LargeArrays for storage.
A bool indicating LargeArrays usage.setUseLargeArrays (bool On)
Sets whether JTransforms uses LargeArrays for storage.
On is a bool to enable or disable LargeArray storage.nextPow2 (int X)
Returns the next power of two greater than or equal to X.
X is an int.The next int power of two.nextPow2Long (int X)
Returns the next power of two greater than or equal to X for long values.
X is a long.The next long power of two.prevPow2 (int X)
Returns the previous power of two less than or equal to X.
X is an int.The previous int power of two.prevPow2Long (int X)
Returns the previous power of two less than or equal to X for long values.
X is a long.The previous long power of two.isPowerOf2 (int X)
Returns true when X is a power of two.
X is an int.A bool with true when X is a power of two.isPowerOf2Long (int X)
Returns true when X is a power of two for long values.
X is a long.A bool with true when X is a power of two.getReminder (int N, list Factors)
Computes the largest factor remainder of N divided by the supplied factors.
N is the long value.Factors is a list of int factors.A long with the remainder.sleep (int Millis)
Sleeps for the given number of milliseconds.
Millis is a long with the sleep duration.[152:21] static (extern: com.lehman.aussom.AussomIOUtils) extends: object
Static helpers from org.jtransforms.utils.IOUtils. Provides
RMSE computation, random matrix fillers, pretty printers, and
file writers for JTransforms data. Each JTransforms IOUtils
overload becomes its own Aussom method with a descriptive
suffix so the surface is unambiguous.
Naming convention: the suffix D denotes double precision,
F denotes float precision, Large denotes a LargeArray, and
Jagged denotes a nested-list shape.
computeRmseDouble (double A, double B)
Computes the RMSE between two doubles. Returns the absolute difference for scalar inputs.
A is a double.B is a double.A double with the RMSE.computeRmseFloat (double A, double B)
Computes the RMSE between two single precision floats.
A is a float represented as a number.B is a float represented as a number.A double with the RMSE.computeRmseListD (list A, list B)
Computes the RMSE between two double-precision lists.
A is a list of numbers.B is a list of numbers.A double with the RMSE.computeRmseListF (list A, list B)
Computes the RMSE between two float-precision lists.
A is a list of numbers.B is a list of numbers.A double with the RMSE.computeRmseLargeD (object A, object B)
Computes the RMSE between two DoubleLargeArrays.
A is a DoubleLargeArray.B is a DoubleLargeArray.A double with the RMSE.computeRmseLargeF (object A, object B)
Computes the RMSE between two FloatLargeArrays.
A is a FloatLargeArray.B is a FloatLargeArray.A double with the RMSE.computeRmse2DListD (list A, list B)
Computes the RMSE between two 2D double lists.
A is a 2D list of numbers.B is a 2D list of numbers.A double with the RMSE.computeRmse2DListF (list A, list B)
Computes the RMSE between two 2D float lists.
A is a 2D list of numbers.B is a 2D list of numbers.A double with the RMSE.computeRmse3DListD (list A, list B)
Computes the RMSE between two 3D double lists.
A is a 3D list of numbers.B is a 3D list of numbers.A double with the RMSE.computeRmse3DListF (list A, list B)
Computes the RMSE between two 3D float lists.
A is a 3D list of numbers.B is a 3D list of numbers.A double with the RMSE.fillMatrix1DD (int N)
Generates a 1D double list filled with random numbers.
N is the long length of the matrix.A list of doubles.fillMatrix1DF (int N)
Generates a 1D float list filled with random numbers.
N is the long length of the matrix.A list of doubles.fillMatrix1DLargeD (int N)
Generates a DoubleLargeArray filled with random numbers.
N is the long length of the array.A DoubleLargeArray.fillMatrix1DLargeF (int N)
Generates a FloatLargeArray filled with random numbers.
N is the long length of the array.A FloatLargeArray.fillMatrix2DD (int N1, int N2)
Generates a 2D-flat double list filled with random numbers.
N1 is the row count.N2 is the column count.A list of doubles of length N1*N2.fillMatrix2DF (int N1, int N2)
Generates a 2D-flat float list filled with random numbers.
N1 is the row count.N2 is the column count.A list of doubles of length N1*N2.fillMatrix2DLargeD (int N1, int N2)
Generates a flat DoubleLargeArray filled with random numbers for a 2D matrix.
N1 is the row count.N2 is the column count.A DoubleLargeArray of length N1*N2.fillMatrix2DLargeF (int N1, int N2)
Generates a flat FloatLargeArray filled with random numbers for a 2D matrix.
N1 is the row count.N2 is the column count.A FloatLargeArray of length N1*N2.fillMatrix2DJaggedD (int N1, int N2)
Generates a nested 2D double list filled with random numbers.
N1 is the row count.N2 is the column count.A 2D list of doubles.fillMatrix2DJaggedF (int N1, int N2)
Generates a nested 2D float list filled with random numbers.
N1 is the row count.N2 is the column count.A 2D list of doubles.fillMatrix3DD (int N1, int N2, int N3)
Generates a 3D-flat double list filled with random numbers.
N1 is the slice count.N2 is the row count.N3 is the column count.A list of doubles of length N1N2N3.fillMatrix3DF (int N1, int N2, int N3)
Generates a 3D-flat float list filled with random numbers.
N1 is the slice count.N2 is the row count.N3 is the column count.A list of doubles of length N1N2N3.fillMatrix3DLargeD (int N1, int N2, int N3)
Generates a flat DoubleLargeArray filled with random numbers for a 3D matrix.
N1 is the slice count.N2 is the row count.N3 is the column count.A DoubleLargeArray of length N1N2N3.fillMatrix3DLargeF (int N1, int N2, int N3)
Generates a flat FloatLargeArray filled with random numbers for a 3D matrix.
N1 is the slice count.N2 is the row count.N3 is the column count.A FloatLargeArray of length N1N2N3.fillMatrix3DJaggedD (int N1, int N2, int N3)
Generates a nested 3D double list filled with random numbers.
N1 is the slice count.N2 is the row count.N3 is the column count.A 3D list of doubles.fillMatrix3DJaggedF (int N1, int N2, int N3)
Generates a nested 3D float list filled with random numbers.
N1 is the slice count.N2 is the row count.N3 is the column count.A 3D list of doubles.showComplex1D (list A, string Title)
Returns a string-formatted view of a 1D complex array.
A is a list of doubles in interleaved real/imaginary order.Title is the title string.A formatted string.showComplex2D (int Rows, int Columns, list A, string Title)
Returns a string-formatted view of a 2D complex matrix stored row-major in a flat list.
Rows is the row count.Columns is the column count.A is the flat data list.Title is the title string.A formatted string.showComplex2DJagged (list A, string Title)
Returns a string-formatted view of a 2D complex matrix stored as a nested list.
A is the 2D nested list.Title is the title string.A formatted string.showComplex3D (int N1, int N2, int N3, list A, string Title)
Returns a string-formatted view of a 3D complex matrix stored slice-row-major in a flat list.
N1 is the slice count.N2 is the row count.N3 is the column count.A is the flat data list.Title is the title string.A formatted string.showComplex3DJagged (list A, string Title)
Returns a string-formatted view of a 3D complex matrix stored as a nested list.
A is the 3D nested list.Title is the title string.A formatted string.showComplex3DFloat (int N1, int N2, int N3, list A, string Title)
Returns a string-formatted view of a 3D complex float matrix stored slice-row-major in a flat list.
N1 is the slice count.N2 is the row count.N3 is the column count.A is the flat data list.Title is the title string.A formatted string.showReal1D (list A, string Title)
Returns a string-formatted view of a 1D real array.
A is the data list.Title is the title string.A formatted string.showReal2D (int N1, int N2, list A, string Title)
Returns a string-formatted view of a 2D real matrix stored row-major in a flat list.
N1 is the row count.N2 is the column count.A is the flat data list.Title is the title string.A formatted string.showReal3D (int N1, int N2, int N3, list A, string Title)
Returns a string-formatted view of a 3D real matrix stored slice-row-major in a flat list.
N1 is the slice count.N2 is the row count.N3 is the column count.A is the flat data list.Title is the title string.A formatted string.showReal3DJagged (list A, string Title)
Returns a string-formatted view of a 3D real matrix stored as a nested list.
A is the 3D nested list.Title is the title string.A formatted string.writeToFileComplex1D (list A, string Path)
Writes a 1D complex double array to a file.
A is the data list.Path is the output file path.writeToFileComplex1DFloat (list A, string Path)
Writes a 1D complex float array to a file.
A is the data list.Path is the output file path.writeToFileComplex2D (int N1, int N2, list A, string Path)
Writes a 2D complex double matrix to a file.
N1 is the row count.N2 is the column count.A is the flat data list.Path is the output file path.writeToFileComplex2DFloat (int N1, int N2, list A, string Path)
Writes a 2D complex float matrix to a file.
N1 is the row count.N2 is the column count.A is the flat data list.Path is the output file path.writeToFileComplex2DJagged (list A, string Path)
Writes a 2D complex double matrix stored as a nested list to a file.
A is the 2D nested list.Path is the output file path.writeToFileComplex3D (int N1, int N2, int N3, list A, string Path)
Writes a 3D complex double matrix to a file.
N1 is the slice count.N2 is the row count.N3 is the column count.A is the flat data list.Path is the output file path.writeToFileComplex3DJagged (list A, string Path)
Writes a 3D complex double matrix stored as a nested list to a file.
A is the 3D nested list.Path is the output file path.writeToFileReal1D (list A, string Path)
Writes a 1D real double array to a file.
A is the data list.Path is the output file path.writeToFileReal1DFloat (list A, string Path)
Writes a 1D real float array to a file.
A is the data list.Path is the output file path.writeToFileReal2D (int N1, int N2, list A, string Path)
Writes a 2D real double matrix to a file.
N1 is the row count.N2 is the column count.A is the flat data list.Path is the output file path.writeToFileReal2DFloat (int N1, int N2, list A, string Path)
Writes a 2D real float matrix to a file.
N1 is the row count.N2 is the column count.A is the flat data list.Path is the output file path.writeToFileReal3D (int N1, int N2, int N3, list A, string Path)
Writes a 3D real double matrix to a file.
N1 is the slice count.N2 is the row count.N3 is the column count.A is the flat data list.Path is the output file path.