From d682da46711a9c7b924ad4b1b03e5c0ee37117e5 Mon Sep 17 00:00:00 2001 From: Bradley Cederholm <106129785+Hqllow@users.noreply.github.com> Date: Thu, 14 Nov 2024 18:20:13 -0500 Subject: [PATCH] added integral L L L L L L L L L L L L L L L L L L L L L L L L L L L L L L L L INTEFRAL INTEGRAL INTEGRAL if only my calc 1 teacher copuld see my now oh boy --- client/src/pages/Strategy.tsx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/client/src/pages/Strategy.tsx b/client/src/pages/Strategy.tsx index 755f60f..a9fd394 100644 --- a/client/src/pages/Strategy.tsx +++ b/client/src/pages/Strategy.tsx @@ -69,6 +69,7 @@ function Strategy() { const [maxTrimVal, setMaxTrimVal] = useState(999999); const [minTrimVal, setMinTrimVal] = useState(0); const [rangeAverage, setRangeAverage] = useState(0); + const [integral, setIntegral] = useState(0); const [rangeMax, setRangeMax] = useState(0); const [rangeMin, setRangeMin] = useState(0); const [shouldExtrapolate, setShouldExtrapolate] = useState(false); @@ -235,6 +236,7 @@ function Strategy() { setRangeAverage(average); setRangeMax(maxValue); setRangeMin(minValue); + setIntegral(integrateData(filteredResponse, dataKey)); const requestedTimespan = new Date(endTime).getTime() - new Date(startTime).getTime(); @@ -805,6 +807,11 @@ function Strategy() { Minimum: {formatNumber(Number(rangeMin))} +