io.github.mianalysis.mia.process.math.ArrayFunc Maven / Gradle / Ivy
package io.github.mianalysis.mia.process.math;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
public class ArrayFunc
{
public static int[] uniqueVals (int[] col_vals) {
//Unique values from the input int array "col_vals"
ArrayList un_al = new ArrayList();
for (int i=0;i un_al = new ArrayList();
for (int i=0;i un_al = new ArrayList();
for (int i=0;i un_al = new ArrayList();
for (int i=0;i un_al = new ArrayList();
ArrayList r_al = new ArrayList();
for (int i=0;i un_al = new ArrayList();
for (int i=0;i corr_al = new ArrayList();
for (int i=0;i list, int test) {
Boolean boo = false;
for (int i=0;iout) {
out = arr[i];
}
}
return out;
}
public static double[] arrayListToArray(ArrayList al) {
double[] ar = new double[al.size()];
for (int i=0;i