public clsPeakProcessorParameters(double sn, double peak_bg_ratio, bool thresholded_data, PEAK_FIT_TYPE fit_type) { SignalToNoiseThreshold = sn; PeakBackgroundRatio = peak_bg_ratio; PeakFitType = fit_type; ThresholdedData = thresholded_data; }
/// <summary> /// sets the options for this instance. /// </summary> /// <param name="signalToNoise">sets the threshold signal to noise value.</param> /// <param name="thresh">sets the peak intensity threshold.</param> /// <param name="thresholded">if the data is thresholded.</param> /// <param name="type">sets the type of peak fitting algorithm used.</param> public void SetOptions(double signalToNoise, double thresh, bool thresholded, PEAK_FIT_TYPE type) { _isDataThresholded = thresholded; // signal to noise should ideally be set before PeakIntensityThreshold SetSignalToNoiseThreshold(signalToNoise); SetPeakIntensityThreshold(thresh); SetPeakFitType(type); }
/// <summary> /// sets the type of peak fitting used to find m/z values for peaks. /// </summary> /// <param name="type">specifies the type of peak fitting.</param> public void SetPeakFitType(PEAK_FIT_TYPE type) { _peakFit.SetOptions(type); }
/// <summary> /// Sets the type of fit. /// </summary> /// <param name="type">sets the type of fit function that this instance uses.</param> public void SetOptions(PEAK_FIT_TYPE type) { _peakFitType = type; }
/// <summary> /// Default constructor. /// </summary> /// <remarks>By default uses Quadratic fit.</remarks> public PeakFitter() { _peakFitType = PEAK_FIT_TYPE.Quadratic; }