diff --git a/frontend/src/components/Menu.tsx b/frontend/src/components/Menu.tsx
index f8a365f..f2cb881 100644
--- a/frontend/src/components/Menu.tsx
+++ b/frontend/src/components/Menu.tsx
@@ -12,6 +12,7 @@ import Spinner from "react-bootstrap/Spinner";
import Table from "react-bootstrap/Table";
import Modal from 'react-bootstrap/Modal';
import NormalSlider from "./NormalSlider";
+import ListGroup from 'react-bootstrap/ListGroup';
import Accordion from 'react-bootstrap/Accordion';
import { getPhaseFraction } from "./imageLogic";
@@ -213,13 +214,9 @@ const Result = () => {
return loc
}
- const absErr = analysisInfo?.absError!
- const roundTo = getDPofSigFig(absErr);
-
const c = colours[selectedPhase];
const headerHex = rgbaToHex(c[0], c[1], c[2], c[3]);
-
useEffect(() => {
const refs = [pfResultRef, lResultRef];
refs.map((r, i) => restyleAccordionHeaders(r, (i == 0), headerHex));
@@ -227,8 +224,13 @@ const Result = () => {
const absErrFromPFB = (pfB![1] - pfB![0]) / 2
+ const perErrFromPFB = 100 * (((pfB![1] - pfB![0]) / 2) / phaseFrac)
+
+ const absErr = analysisInfo?.absError!
+ const roundTo = getDPofSigFig(absErrFromPFB);
+
const beforeBoldText = `The phase fraction in the segmented image is ${phaseFrac.toFixed(3)}. Assuming perfect segmentation, the model proposed by Dahari et al. suggests that `
- const boldText = `we can be ${selectedConf.toFixed(1)}% confident of the true phase fraction being within ${perErr?.toFixed(1)}% of this value (i.e. ${phaseFrac.toFixed(roundTo)}±${(absErrFromPFB).toFixed(roundTo)})`
+ const boldText = `we can be ${selectedConf.toFixed(1)}% confident of the true phase fraction being within ${perErrFromPFB?.toFixed(1)}% of this value (i.e. ${phaseFrac.toFixed(roundTo)}±${(absErrFromPFB).toFixed(roundTo)})`
const copyText = beforeBoldText + boldText
const copyBtn = () => { navigator.clipboard.writeText(copyText) }
@@ -291,7 +293,7 @@ const Result = () => {
Phase Fraction Uncertainty
{/*Need to manually overwrite the style here because of werid bug*/}
-
+
{beforeBoldText}{boldText}
@@ -309,9 +311,32 @@ const Result = () => {
For a {errVF.toFixed(2)}% uncertainty in phase fraction, you need to measure a total image size of about {sizeText} (i.e. {nMore} more images) at the same resolution.
+
+ Warnings
+
+
+ Other errors are possible, and may be larger! (i.e, segmentation error)
+ Not designed for periodic structures
+ This is a (conservative) estimate - retry when you have measured the larger sample
+ Porta ac consectetur ac
+
+