Example #1
0
 public static void Initialize(int zeroFillFactor, int centerSpanLength, CorrectorType correctorType,
                               ApodizerType apodizerType, PhaseType phaseType, double rangeStart, double rangeEnd,
                               bool realPhase, bool lockDip, double lockDipFreqInMHz)
 {
     if (_singleton != null)
     {
         throw new Exception("environment already init");
     }
     _singleton = new CorrectorConfigurations(zeroFillFactor, centerSpanLength, correctorType, apodizerType,
                                              phaseType, rangeStart, rangeEnd, realPhase, lockDip, lockDipFreqInMHz);
 }
Example #2
0
 private CorrectorConfigurations(int zeroFillFactor, int centerSpanLength, CorrectorType correctorType,
                                 ApodizerType apodizerType, PhaseType phaseType, double rangeStart, double rangeEnd,
                                 bool realSpec, bool lockDip, double lockDipFreqInMHz)
 {
     ZeroFillFactor   = zeroFillFactor;
     CenterSpanLength = centerSpanLength;
     CorrectorType    = correctorType;
     ApodizerType     = apodizerType;
     PhaseType        = phaseType;
     RangeStart       = rangeStart;
     RangeEnd         = rangeEnd;
     RealSpec         = realSpec;
     LockDip          = lockDip;
     LockDipFreqInMHz = lockDipFreqInMHz;
 }