Package flanagan.interpolation

Examples of flanagan.interpolation.BiCubicSpline


                refind3=CubicSpline.interpolate(concg, concnG, refInd, deriv);
            refind=refind2+(refind3-refind2)*concw/(5.0);
          }
        }
        else{
          BiCubicSpline bcs = new BiCubicSpline(tempw, weight, corrfac);
          corrfactor = bcs.interpolate(temperature, concw);
          concw=concw+corrfactor;
          concg=Sucrose.weightpercentToGperl(concw, temperature);
          refind=CubicSpline.interpolate(concg, concnG, refInd, deriv);
        }
      }
View Full Code Here


                    CubicSpline cs = new CubicSpline(concn85, lvisc);
                    for(int j=0; j<lengthC85; j++){
                        array[i][j] = cs.interpolate(conc85[j]);
                    }
                }
                BiCubicSpline bcs = new BiCubicSpline(temp85, conc85, array);
                ret = Math.exp(bcs.interpolate(temperature, gPerL));
            }
            else{
                if(temperature>100.0){
                    throw new IllegalArgumentException("Temperature, " + temperature + ", out of range");
                }
                else{
                    int lengthT100 = length60;
                    int lengthC100 =  amC.indexOf(771.9);
                    double[] temp100 = amT.subarray_as_double(0, lengthT100-1);
                    double[] conc100 = amC.subarray_as_double(0, lengthC100);
                    lengthC100++;

                    double[][] array = new double[lengthT100][lengthC100];
                    for(int i=0; i<lengthT100; i++){
                        double[] lvisc = {Math.log(zero[i]), Math.log(forty[i]), Math.log(sixty[i])};
                        CubicSpline cs = new CubicSpline(concn100, lvisc);
                        for(int j=0; j<lengthC100; j++){
                            array[i][j] = cs.interpolate(conc100[j]);

                        }
                    }
                    BiCubicSpline bcs = new BiCubicSpline(temp100, conc100, array);
                    ret = Math.exp(bcs.interpolate(temperature, gPerL));
                }
            }
        }
        else{
            if(temperature==20 && gPerL<=1208.2){
View Full Code Here

TOP

Related Classes of flanagan.interpolation.BiCubicSpline

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.