Package flanagan.complex

Examples of flanagan.complex.Complex.reset()


  // and the wavelength (wavl).  For a pure material with a given absorption coefficient set concn
  // to unity and extCoeff to the value of the absorption coefficient.
  // The units of the concentration, the absorption coefficient and the wavelength should match.
  public static Complex absToComplex(double riReal, double extCoeff, double concn, double wavl){
      Complex ri = new Complex();
      ri.reset(riReal, extCoeff*concn*wavl/(4.0D*Math.PI));
      return ri;
  }

  // Returns the absorption coefficient ( units - reciprocal metres) that corresponds
  // to the imaginary part of a complex refractive index (riImag) at a wavelength wavl (metres)
View Full Code Here


      if(wavelength>=wavl[0] && wavelength<=wavl[n-1]){
        // cubic spline interpolation - real part
        yRe=CubicSpline.interpolate(wavelength, wavl, rfInRe, derivRe);
        // cubic spline interpolation - imaginary part
        yIm=CubicSpline.interpolate(wavelength, wavl, rfInIm, derivIm);
        ri.reset(yRe, RefractiveIndex.imagPlusMinus*yIm);
        }
      else{
        throw new IllegalArgumentException("Wavelength is outside the limits (187.86nm - 1937.2nm) of the tabulated data");
    }
      return ri;
View Full Code Here

      if(wavelength>=wavl[0] && wavelength<=wavl[n-1]){
        // cubic spline interpolation - real part
        yRe=CubicSpline.interpolate(wavelength, wavl, rfInRe, derivRe);
        // cubic spline interpolation - imaginary part
        yIm=CubicSpline.interpolate(wavelength, wavl, rfInIm, derivIm);
        ri.reset(yRe, RefractiveIndex.imagPlusMinus*yIm);
        }
      else{
        throw new IllegalArgumentException("Wavelength is outside the limits (187.86nm - 1937.2nm) of the tabulated data");
    }
      return ri;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.