예제 #1
0
 /// <summary>
 /// Default constructor. Set all options to none.
 /// </summary>
 public SpectralPreprocessingOptions()
 {
     _method          = SpectralPreprocessingMethod.None;
     _detrendingOrder = -1;
     _ensembleScale   = false;
     _regions         = new int[0];
 }
 /// <summary>
 /// Default constructor. Set all options to none.
 /// </summary>
 public SpectralPreprocessingOptions()
 {
   _method = SpectralPreprocessingMethod.None;
   _detrendingOrder = -1;
   _ensembleScale = false;
   _regions = new int[0];
 }
예제 #3
0
 /// <summary>
 /// Copies all settings from another instance.
 /// </summary>
 /// <param name="from">The other instance to copy the data from.</param>
 public void CopyFrom(SpectralPreprocessingOptions from)
 {
     this._method          = from._method;
     this._detrendingOrder = from._detrendingOrder;
     this._ensembleScale   = from._ensembleScale;
     this._regions         = (int[])from._regions.Clone();
 }
예제 #4
0
        public void InitializeMethod(SpectralPreprocessingMethod method)
        {
            switch (method)
            {
            case SpectralPreprocessingMethod.None:
                this._rbMethodNone.Checked = true;
                break;

            case SpectralPreprocessingMethod.MultiplicativeScatteringCorrection:
                this._rbMethodMSC.Checked = true;
                break;

            case SpectralPreprocessingMethod.StandardNormalVariate:
                this._rbMethodSNV.Checked = true;
                break;

            case SpectralPreprocessingMethod.FirstDerivative:
                this._rbMethod1stDer.Checked = true;
                break;

            case SpectralPreprocessingMethod.SecondDerivative:
                this._rbMethod2ndDer.Checked = true;
                break;
            }
        }
예제 #5
0
        /// <summary>
        /// Copies all settings from another instance.
        /// </summary>
        /// <param name="from">The other instance to copy the data from.</param>
        public void CopyFrom(SpectralPreprocessingOptions from)
        {
            if (object.ReferenceEquals(this, from))
            {
                return;
            }

            _method          = from._method;
            _detrendingOrder = from._detrendingOrder;
            _ensembleScale   = from._ensembleScale;
            _regions         = (int[])from._regions.Clone();
        }
예제 #6
0
 public void EhView_MethodChanged(SpectralPreprocessingMethod newvalue)
 {
     _doc.Method = newvalue;
 }
 public void InitializeMethod(SpectralPreprocessingMethod method)
 {
   switch(method)
   {
     case SpectralPreprocessingMethod.None:
       this._rbMethodNone.Checked = true;
       break;
     case SpectralPreprocessingMethod.MultiplicativeScatteringCorrection:
       this._rbMethodMSC.Checked = true;
       break;
     case SpectralPreprocessingMethod.StandardNormalVariate:
       this._rbMethodSNV.Checked = true;
       break;
     case SpectralPreprocessingMethod.FirstDerivative:
       this._rbMethod1stDer.Checked = true;
       break;
     case SpectralPreprocessingMethod.SecondDerivative:
       this._rbMethod2ndDer.Checked = true;
       break;
   }
 }
 public void EhView_MethodChanged(SpectralPreprocessingMethod newvalue)
 {
   _doc.Method = newvalue;
 }
 /// <summary>
 /// Copies all settings from another instance.
 /// </summary>
 /// <param name="from">The other instance to copy the data from.</param>
 public void CopyFrom(SpectralPreprocessingOptions from)
 {
   this._method = from._method;
   this._detrendingOrder = from._detrendingOrder;
   this._ensembleScale = from._ensembleScale;
   this._regions = (int[])from._regions.Clone();
 }
예제 #10
0
		/// <summary>
		/// Copies all settings from another instance.
		/// </summary>
		/// <param name="from">The other instance to copy the data from.</param>
		public void CopyFrom(SpectralPreprocessingOptions from)
		{
			if (object.ReferenceEquals(this, from))
				return;

			this._method = from._method;
			this._detrendingOrder = from._detrendingOrder;
			this._ensembleScale = from._ensembleScale;
			this._regions = (int[])from._regions.Clone();
		}