Ejemplo n.º 1
0
 public void Register()
 {
     CorrectorConfigurations.Register(_corrector);
     GeneralConfigurations.Register(_general);
     SamplingConfigurations.Register(_sampling);
     SliceConfigurations.Register(_slice);
     MiscellaneousConfigurations.Register(_miscellaneous);
 }
 public static void Register(SliceConfigurations sliceConfigurations)
 {
     if (_singleton == null)
     {
         _singleton = sliceConfigurations;
     }
     else
     {
         ConfigsHolder.CopyTo(sliceConfigurations, _singleton);
     }
 }
 public static void Initialize(int peakMinLength, bool crestAtCenter, double crestAmplitudeThreshold,
                               RulerType rulerType, bool autoAdjust, bool findAbs, int fixedLength, bool reference)
 {
     _singleton = new SliceConfigurations(peakMinLength, crestAtCenter, crestAmplitudeThreshold, rulerType,
                                          autoAdjust, findAbs, fixedLength, reference);
 }