double[] tempy = new double[100];
double incr = (interpLx[maxIindex]-interpLx[0])/99;
double intr = interpLx[0];
for(int i=0; i<99; i++){
tempx[i] = intr;
tempy[i] = csl.interpolate(intr);
intr += incr;
}
tempy[99] = interpLy[maxIindex];
tempx[99] = interpLx[maxIindex];
boolean testt = true;