cassis.common
public class UtilArrayList extends java.lang.Object
| Constructor and Description |
|---|
UtilArrayList() |
| Modifier and Type | Method and Description |
|---|---|
static double |
getArrayValueAt(double searchValue,
java.util.List<java.lang.Double> searchList,
java.util.List<java.lang.Double> frequencyList)
Return the array value at the given frequency
|
static double[] |
oversample(double[] tab,
int oversampling)
Oversample a tab
|
static int |
quickSearchIndex(double[] freqs,
double freq0,
int index1,
int index2)
Retrun the index of the arrays freqs[] and aints[] that is the nearest of
the freq0 value.
|
static void |
quicksortindex(double[] arr,
int[] indexes,
int low,
int high)
Tools to sort an array of (double) and returns also the sorted indexes.
|
static void |
quicksortindex2(double[] arr,
double[] arr2,
double[] arr3,
double[] arr4,
double[] arr5,
int[] arr6,
int begin,
int last) |
static void |
quicksortTab2(double[] arr,
double[] arr2,
int begin,
int last) |
static double[] |
reverse(double[] tab) |
public static double getArrayValueAt(double searchValue,
java.util.List<java.lang.Double> searchList,
java.util.List<java.lang.Double> frequencyList)
searchValue - searchValuesearchList - searchListpublic static int quickSearchIndex(double[] freqs,
double freq0,
int index1,
int index2)
freqs - an array of frequenciesfreq0 - a value to searchindex1 - the minimum index value to search in the array freqsindex2 - the maximum index value to search in the array freqspublic static void quicksortindex(double[] arr,
int[] indexes,
int low,
int high)
arr - contains the array of (double) to sortindexes - contains the array of (int) associated to arrlow - is the first index of the array of (double)high - is the last index of the array of (double)public static void quicksortTab2(double[] arr,
double[] arr2,
int begin,
int last)
public static void quicksortindex2(double[] arr,
double[] arr2,
double[] arr3,
double[] arr4,
double[] arr5,
int[] arr6,
int begin,
int last)
public static double[] oversample(double[] tab,
int oversampling)
tab - oversampling - public static double[] reverse(double[] tab)