Exemplo n.º 1
0
        public BoxReflFitBase(BoxReflFitBase previousFitBase)
        {
            _RhoArray     = new List <double>(previousFitBase._RhoArray.ToArray());
            _LengthArray  = new List <double>(previousFitBase._LengthArray.ToArray());
            _SigmaArray   = new List <double>(previousFitBase._SigmaArray.ToArray());
            BoxCountTB    = previousFitBase.BoxCountTB;
            SubRoughTB    = previousFitBase.SubRoughTB;
            SubphaseSLD   = previousFitBase.SubphaseSLD;
            SuperphaseSLD = previousFitBase.SuperphaseSLD;

            m_bUseSLD    = Properties.Settings.Default.UseSLDSingleSession;
            HoldsigmaCB  = previousFitBase.HoldsigmaCB;
            _ImpNormCB   = previousFitBase._ImpNormCB;
            m_dImpNorm   = previousFitBase.m_dImpNorm;
            WavelengthTB = 1.24;


            _fitinfo = new double[9];

            //Setup arrays to hold the old values
            PreviousRhoArray    = new List <double>(6);
            PreviousLengthArray = new List <double>(6);
            PreviousSigmaArray  = new List <double>(6);
            _ReflectivityMap    = new double[ReflData.Instance.GetNumberDataPoints];
            FitHolder           = new List <BoxReflFitBase>(100);

            //Create Z
            _Z = new double[500];
            MakeZ(true);

            _ElectronDensityArray    = new double[500];
            _BoxElectronDensityArray = new double[500];

            ZOffset = 25;
        }
Exemplo n.º 2
0
 public override void LoadLightWeightClone(BoxReflFitBase b)
 {
     _Z = b.Z;
     _ElectronDensityArray    = b.ElectronDensityArray;
     _BoxElectronDensityArray = b.BoxElectronDensityArray;
     _ReflectivityMap         = b.ReflectivityMap;
     NormalizationFactor      = b.NormalizationFactor;
     ImpNormCB     = b.ImpNormCB;
     SubphaseSLD   = b.SubphaseSLD;
     SuperphaseSLD = b.SuperphaseSLD;
     QSpreadTB     = b.QSpreadTB;
     HighQOffset   = b.HighQOffset;
     LowQOffset    = b.LowQOffset;
     BoxCountTB    = b.BoxCount;
     IsOneSigma    = b.IsOneSigma;
     _RhoArray     = new List <double>(b.RhoArray.ToArray());
     _LengthArray  = new List <double>(b.LengthArray.ToArray());
     _SigmaArray   = new List <double>(b.SigmaArray.ToArray());
     _fitinfo      = (double[])((ReflFit)b)._fitinfo.Clone();
     m_dCovarArray = b.CovarArray;
     m_dChiSquare  = b.ChiSquare;
     SubRoughTB    = b.GetSubRoughness;
 }
Exemplo n.º 3
0
 public ReflFit(BoxReflFitBase previousFitBase) : base(previousFitBase)
 {
 }
Exemplo n.º 4
0
 public override void LoadLightWeightClone(BoxReflFitBase b)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 5
0
 public abstract void LoadLightWeightClone(BoxReflFitBase b);