this.superstrateRI = RefractiveIndex.air(super.wavelength);
super.superstrateRefractiveIndex = RefractiveIndex.air(super.wavelength);
}
if(this.setTEerrors){
ErrorProp superRI = new ErrorProp(super.superstrateRefractiveIndex, 0.0D);
ErrorProp pitch = new ErrorProp(this.gratingPitch, 0.0D);
ErrorProp lambda = new ErrorProp(super.wavelength, 0.0D);
for(int i=0; i<this.numberOfTEmeasurementsGrating; i++){
ErrorProp theta = new ErrorProp(this.anglesRadTM[i], this.errorsRadTM[i]);
ErrorProp order = new ErrorProp((double)this.gratingOrderTE[i], 0.0D);
ErrorProp calc = ErrorProp.sin(theta);
calc = calc.times(superRI);
calc = calc.plus(lambda.times(order).over(pitch));
this.effectiveRefractiveIndicesTE[i] = calc.getValue();
this.effectiveErrorsTE[i] = calc.getError();
}
super.enterTEmodeData(this.thicknessesTE, this.effectiveRefractiveIndicesTE, this.effectiveErrorsTE, this.modeNumbersTE);
}
else{
for(int i=0; i<this.numberOfTEmeasurementsGrating; i++){