-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use SciPy orthogonal distance regression
- Loading branch information
Showing
12 changed files
with
139 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { FC } from 'react'; | ||
import { Box } from '@mui/material'; | ||
import { spacingN } from '../../contexts/MUITheme.tsx'; | ||
|
||
export const FitVaporResultsHelp: FC = () => ( | ||
<Box ml={4}> | ||
Two optimization methods are employed: | ||
<ul style={{ marginBottom: 0, marginTop: spacingN(1) }}> | ||
<li> | ||
<u>p-optimization</u>: standard curve fitting, which only considers residuals of the dependent variable | ||
(<i>p</i>). | ||
</li> | ||
<li> | ||
<u>T,p-optimization</u>: orthogonal distance regression, which considers residuals of both variables ( | ||
<i>T</i>, <i>p</i>). | ||
<ul> | ||
<li> | ||
This is <b>recommended</b>, as both variables have significant uncertainties. | ||
</li> | ||
<li>But it may be unstable, so both methods are offered.</li> | ||
<li> | ||
Note that RMS & AAD are always calculated only from <i>p</i> residuals, so they{' '} | ||
<i>may actually increase</i> with T,p-optimization. | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</Box> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Dispatch, FC, SetStateAction } from 'react'; | ||
import { IconButton } from '@mui/material'; | ||
import { HelpOutline, KeyboardArrowDown, KeyboardArrowUp } from '@mui/icons-material'; | ||
|
||
export type ExpandHelpButtonProps = { | ||
infoOpen: boolean; | ||
setInfoOpen: Dispatch<SetStateAction<boolean>>; | ||
}; | ||
|
||
export const ExpandHelpButton: FC<ExpandHelpButtonProps> = ({ infoOpen, setInfoOpen }) => ( | ||
<IconButton onClick={() => setInfoOpen((prev) => !prev)}> | ||
<HelpOutline /> | ||
{infoOpen ? <KeyboardArrowUp /> : <KeyboardArrowDown />} | ||
</IconButton> | ||
); |
Oops, something went wrong.