Exemple #1
0
            protected RetentionTimeValues?ScaleRetentionTimeValues(ChromFileInfoId chromFileInfoId, RetentionTimeValues?retentionTimeValues)
            {
                if (!retentionTimeValues.HasValue)
                {
                    return(null);
                }
                if (null == RetentionTimeTransformOp)
                {
                    return(retentionTimeValues);
                }
                IRegressionFunction regressionFunction;

                if (!RetentionTimeTransformOp.TryGetRegressionFunction(chromFileInfoId, out regressionFunction))
                {
                    return(null);
                }
                return(retentionTimeValues.Value.Scale(regressionFunction));
            }
Exemple #2
0
            protected RetentionTimeValues ScaleRetentionTimeValues(ChromFileInfoId chromFileInfoId, RetentionTimeValues retentionTimeValues)
            {
                if (retentionTimeValues == null)
                {
                    return(null);
                }
                if (null == RetentionTimeTransformOp)
                {
                    return(retentionTimeValues);
                }
                RegressionLine regressionFunction;

                if (!RetentionTimeTransformOp.TryGetRegressionFunction(chromFileInfoId, out regressionFunction))
                {
                    return(null);
                }
                return(retentionTimeValues.Scale(regressionFunction));
            }