summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/templatelayout.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2019-08-17 21:46:00 +0200
committerGravatar Robert C. Helling <helling@atdotde.de>2019-08-20 18:32:07 +0200
commita0912b38bd7b8f36c9c106a890820e24e70324ff (patch)
tree1912de88530453c11ecff4a4bfb6b87c4d3cb706 /desktop-widgets/templatelayout.h
parent1f24a8ef82b91a4a5616f3cf4365439af740216b (diff)
downloadsubsurface-a0912b38bd7b8f36c9c106a890820e24e70324ff.tar.gz
Replace table interpolation by two line fit for CNS
We used a table lookup for CNS equivalent times. Turns out the log of this table falls pretty much on a straight line for po2 <= 1.5bar. We now fit this tabel two two lines, one for <= 1.5 bar and one above. This four parameter fit has half the sum of errors squared than the five parameter fit using a fourth order polynomial. Fitting the log has the advantage that this never crosses 0, which would have the bad effect of resulting in negative CNS values as we divide by the table value. We don't adopt a maximum pO2 cut-off for the CNS calculation but rather live with the large values that the interpolation formula produces when extrapolating. Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'desktop-widgets/templatelayout.h')
0 files changed, 0 insertions, 0 deletions