From 6adbbc1a0bab42508616e899aae7b8fd2b9b27ea Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Fri, 27 Oct 2023 09:57:24 -0700 Subject: [PATCH] PopulateCalculated bug fix --- Adaptation/FileHandlers/QS408M/ProcessData.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Adaptation/FileHandlers/QS408M/ProcessData.cs b/Adaptation/FileHandlers/QS408M/ProcessData.cs index e417dd6..a0e7c30 100644 --- a/Adaptation/FileHandlers/QS408M/ProcessData.cs +++ b/Adaptation/FileHandlers/QS408M/ProcessData.cs @@ -376,10 +376,10 @@ public partial class ProcessData : IProcessData ReadOnlyCollection thicknessTenPoints = new(thicknessPoints.Take(10).ToArray()); double thicknessFourteenCriticalPointsAverage = thicknessTenPoints.Average(); // 15 double thicknessFourteenCriticalPointsStdDev = StandardDeviation(thicknessTenPoints); // 16 - double thicknessFourteenCenterMean = thicknessTenPoints[4]; // 17 - double thicknessFourteenMeanFrom = new double[] { thicknessTenPoints[3], thicknessTenPoints[4], thicknessTenPoints[5], thicknessTenPoints[6] }.Average(); // 18 - double thicknessFourteen5mmEdgeMean = new double[] { thicknessTenPoints[0], thicknessTenPoints[1], thicknessTenPoints[8], thicknessTenPoints[9] }.Average(); // 19 - double thicknessFourteen3mmEdgeMean = new double[] { thicknessTenPoints[10], thicknessTenPoints[13] }.Average(); // 20 + double thicknessFourteenCenterMean = thicknessPoints[4]; // 17 + double thicknessFourteenMeanFrom = new double[] { thicknessPoints[3], thicknessPoints[4], thicknessPoints[5], thicknessPoints[6] }.Average(); // 18 + double thicknessFourteen5mmEdgeMean = new double[] { thicknessPoints[0], thicknessPoints[1], thicknessPoints[8], thicknessPoints[9] }.Average(); // 19 + double thicknessFourteen3mmEdgeMean = new double[] { thicknessPoints[10], thicknessPoints[13] }.Average(); // 20 double thicknessFourteen5mmEdgePercent = (thicknessFourteen5mmEdgeMean - thicknessFourteenMeanFrom) / thicknessFourteenMeanFrom * 100; // 21 double thicknessFourteen3mmEdgePercent = (thicknessFourteen3mmEdgeMean - thicknessFourteenMeanFrom) / thicknessFourteenMeanFrom * 100; // 22 ThicknessFourteenCriticalPointsAverage = thicknessFourteenCriticalPointsAverage.ToString("0.0000000"); // 15