Exemplo n.º 1
0
        /// <summary>从多个标样峰列表中找出特定物质的多浓度标样峰</summary>
        /// <param name="std_papl">多个标样峰列表</param>
        /// <param name="std_name">标样名称</param>
        /// <param name="pqm">定量参数</param>
        /// <returns>同种物质的标样峰列表</returns>
        public static List <Peak> GetStandardPeakList(List <PeakAndPointList> std_papl, string std_name, PeakQuantificationMethod pqm)
        {
            switch (pqm.Calibration_Method)
            {
            case PeakQuantificationMethod.CalibrationMethod.cm_ExternalStandard:
                return(CQuantificationExternal.GetStandardPeakList(std_papl, std_name));

            case PeakQuantificationMethod.CalibrationMethod.cm_InternalStandard:
                return(CQuantificationInternal.GetStandardPeakList(std_papl, std_name));

            default:
                return(null);
            }
        }
Exemplo n.º 2
0
        /// <summary>从多组标样中获取拟合曲线所需的点列表</summary>
        /// <param name="peak_list">标准样品列表</param>
        /// <param name="pqm">定量参数</param>
        /// <returns>点列表</returns>
        public static List <PointF> GetCalibrationCurve(List <Peak> peak_list, PeakQuantificationMethod pqm)
        {
            switch (pqm.Calibration_Method)
            {
            case PeakQuantificationMethod.CalibrationMethod.cm_ExternalStandard:
                return(CQuantificationExternal.GetCalibrationCurve(peak_list, pqm.Qualitative_Method));

            case PeakQuantificationMethod.CalibrationMethod.cm_InternalStandard:
                return(CQuantificationInternal.GetCalibrationCurve(peak_list, pqm.Qualitative_Method));

            default:
                return(null);
            }
        }
Exemplo n.º 3
0
        /// <summary>计算校准曲线系数</summary>
        /// <param name="std_peak_list">标准峰对象列表</param>
        /// <param name="pqm">定量参数</param>
        /// <returns>返回系数列表</returns>
        public static List <double> GetCoefficient(List <Peak> peak_list, PeakQuantificationMethod pqm)
        {
            switch (pqm.Calibration_Method)
            {
            case PeakQuantificationMethod.CalibrationMethod.cm_ExternalStandard:
                return(CQuantificationExternal.GetCoefficient(peak_list, pqm));

            case PeakQuantificationMethod.CalibrationMethod.cm_InternalStandard:
                return(CQuantificationInternal.GetCoefficient(peak_list, pqm));

            default:
                return(null);
            }
        }
Exemplo n.º 4
0
        /// <summary>计算峰列表中每个有效峰的校正因子</summary>
        /// <param name="std_peak_list">标准峰对象列表</param>
        /// <param name="qm">定量参数</param>
        /// <returns>QualitativeErrorInfo枚举值</returns>
        public static QualitativeErrorInfo GetAdjustFactor(List <Peak> peak_list, PeakQuantificationMethod pqm)
        {
            switch (pqm.Calibration_Method)
            {
            case PeakQuantificationMethod.CalibrationMethod.cm_CorrectedNormalization:
            case PeakQuantificationMethod.CalibrationMethod.cm_ExternalStandard:
                return(CQuantificationExternal.GetAdjustFactor(peak_list, pqm.Qualitative_Method));

            case PeakQuantificationMethod.CalibrationMethod.cm_CorrectedNormalizationWithISD:
            case PeakQuantificationMethod.CalibrationMethod.cm_InternalStandard:
                return(CQuantificationInternal.GetAdjustFactor(peak_list, pqm.Qualitative_Method));

            default:
                return(QualitativeErrorInfo.CalibrationMethodError);
            }
        }