ImsInformed.Workflows.CrossSectionExtraction.CrossSectionWorkflowResult.CreateNegativeResult C# (CSharp) Method

CreateNegativeResult() static private method

The create negative result.
static private CreateNegativeResult ( IEnumerable rejectedPeaks, IEnumerable rejectedVoltageGroups, IImsTarget target, string datasetPath, string analysisPath, string sampleCollectionTime ) : CrossSectionWorkflowResult
rejectedPeaks IEnumerable /// The rejected peaks. ///
rejectedVoltageGroups IEnumerable /// The rejected voltage groups. ///
target IImsTarget /// The target. ///
datasetPath string
analysisPath string
sampleCollectionTime string
return CrossSectionWorkflowResult
        internal static CrossSectionWorkflowResult CreateNegativeResult(IEnumerable<ObservedPeak> rejectedPeaks, IEnumerable<VoltageGroup> rejectedVoltageGroups, IImsTarget target, string datasetPath, string analysisPath, string sampleCollectionTime)
        {
            // No valid feature peaks were identified. No hypothesis.
            double voltageGroupScore = VoltageGroupScoring.ComputeAverageVoltageGroupStabilityScore(rejectedVoltageGroups);

            // quantize the VG score from VGs in the removal list.
            IEnumerable<PeakScores> featureStats = rejectedPeaks.Select(x => x.Statistics);
            PeakScores averagePeakScores = FeatureScoreUtilities.AverageFeatureStatistics(featureStats);
            CrossSectionWorkflowResult informedResult = new CrossSectionWorkflowResult(
                datasetPath,
                target,
                AnalysisStatus.Negative,
                null,
                averagePeakScores,
                voltageGroupScore,
                analysisPath,
                sampleCollectionTime);

            return informedResult;
        }