Added plot of diode data
This commit is contained in:
parent
189313a53c
commit
9f20dee3ab
11
lab_3/data/diode.dat
Normal file
11
lab_3/data/diode.dat
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Temperature (C) Diode Value
|
||||||
|
68 364
|
||||||
|
67 367
|
||||||
|
58 382
|
||||||
|
52 390
|
||||||
|
49 396
|
||||||
|
43 405
|
||||||
|
42 408
|
||||||
|
37 415
|
||||||
|
33 422
|
||||||
|
25 438
|
13
lab_3/data/diode.gplot
Normal file
13
lab_3/data/diode.gplot
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
set key off
|
||||||
|
set xlabel 'Temperature (°C)'
|
||||||
|
set ylabel 'ADC Value'
|
||||||
|
|
||||||
|
f(x) = a*x +b
|
||||||
|
|
||||||
|
fit f(x) 'diode.dat' using 1:2 via a, b
|
||||||
|
|
||||||
|
set term pngcairo
|
||||||
|
set output 'diode.png'
|
||||||
|
|
||||||
|
p f(x) lt rgb "black" dt 2, \
|
||||||
|
'diode.dat' using 1:2 lc rgb "black"
|
BIN
lab_3/data/diode.png
Normal file
BIN
lab_3/data/diode.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
288
lab_3/data/fit.log
Normal file
288
lab_3/data/fit.log
Normal file
@ -0,0 +1,288 @@
|
|||||||
|
|
||||||
|
|
||||||
|
*******************************************************************************
|
||||||
|
Mon Nov 4 15:58:15 2019
|
||||||
|
|
||||||
|
|
||||||
|
FIT: data read from 'diode.dat' using 1:2
|
||||||
|
format = x:z
|
||||||
|
#datapoints = 10
|
||||||
|
residuals are weighted equally (unit weight)
|
||||||
|
|
||||||
|
function used for fitting: f(x)
|
||||||
|
f(x) = a*x +b
|
||||||
|
fitted parameters initialized with current variable values
|
||||||
|
|
||||||
|
iter chisq delta/lim lambda a b
|
||||||
|
0 1.2400030000e+06 0.00e+00 3.48e+01 1.000000e+00 1.000000e+00
|
||||||
|
6 9.6489173663e+00 -2.10e-08 3.48e-05 -1.668582e+00 4.777908e+02
|
||||||
|
|
||||||
|
After 6 iterations the fit converged.
|
||||||
|
final sum of squares of residuals : 9.64892
|
||||||
|
rel. change during last iteration : -2.10241e-13
|
||||||
|
|
||||||
|
degrees of freedom (FIT_NDF) : 8
|
||||||
|
rms of residuals (FIT_STDFIT) = sqrt(WSSR/ndf) : 1.09823
|
||||||
|
variance of residuals (reduced chisquare) = WSSR/ndf : 1.20611
|
||||||
|
|
||||||
|
Final set of parameters Asymptotic Standard Error
|
||||||
|
======================= ==========================
|
||||||
|
a = -1.66858 +/- 0.02581 (1.547%)
|
||||||
|
b = 477.791 +/- 1.272 (0.2662%)
|
||||||
|
|
||||||
|
correlation matrix of the fit parameters:
|
||||||
|
a b
|
||||||
|
a 1.000
|
||||||
|
b -0.962 1.000
|
||||||
|
|
||||||
|
|
||||||
|
*******************************************************************************
|
||||||
|
Mon Nov 4 15:58:43 2019
|
||||||
|
|
||||||
|
|
||||||
|
FIT: data read from 'diode.dat' using 1:2
|
||||||
|
format = x:z
|
||||||
|
#datapoints = 10
|
||||||
|
residuals are weighted equally (unit weight)
|
||||||
|
|
||||||
|
function used for fitting: f(x)
|
||||||
|
f(x) = a*x +b
|
||||||
|
fitted parameters initialized with current variable values
|
||||||
|
|
||||||
|
iter chisq delta/lim lambda a b
|
||||||
|
0 1.2400030000e+06 0.00e+00 3.48e+01 1.000000e+00 1.000000e+00
|
||||||
|
6 9.6489173663e+00 -2.10e-08 3.48e-05 -1.668582e+00 4.777908e+02
|
||||||
|
|
||||||
|
After 6 iterations the fit converged.
|
||||||
|
final sum of squares of residuals : 9.64892
|
||||||
|
rel. change during last iteration : -2.10241e-13
|
||||||
|
|
||||||
|
degrees of freedom (FIT_NDF) : 8
|
||||||
|
rms of residuals (FIT_STDFIT) = sqrt(WSSR/ndf) : 1.09823
|
||||||
|
variance of residuals (reduced chisquare) = WSSR/ndf : 1.20611
|
||||||
|
|
||||||
|
Final set of parameters Asymptotic Standard Error
|
||||||
|
======================= ==========================
|
||||||
|
a = -1.66858 +/- 0.02581 (1.547%)
|
||||||
|
b = 477.791 +/- 1.272 (0.2662%)
|
||||||
|
|
||||||
|
correlation matrix of the fit parameters:
|
||||||
|
a b
|
||||||
|
a 1.000
|
||||||
|
b -0.962 1.000
|
||||||
|
|
||||||
|
|
||||||
|
*******************************************************************************
|
||||||
|
Mon Nov 4 15:59:43 2019
|
||||||
|
|
||||||
|
|
||||||
|
FIT: data read from 'diode.dat' using 1:2
|
||||||
|
format = x:z
|
||||||
|
#datapoints = 10
|
||||||
|
residuals are weighted equally (unit weight)
|
||||||
|
|
||||||
|
function used for fitting: f(x)
|
||||||
|
f(x) = a*x +b
|
||||||
|
fitted parameters initialized with current variable values
|
||||||
|
|
||||||
|
iter chisq delta/lim lambda a b
|
||||||
|
0 1.2400030000e+06 0.00e+00 3.48e+01 1.000000e+00 1.000000e+00
|
||||||
|
6 9.6489173663e+00 -2.10e-08 3.48e-05 -1.668582e+00 4.777908e+02
|
||||||
|
|
||||||
|
After 6 iterations the fit converged.
|
||||||
|
final sum of squares of residuals : 9.64892
|
||||||
|
rel. change during last iteration : -2.10241e-13
|
||||||
|
|
||||||
|
degrees of freedom (FIT_NDF) : 8
|
||||||
|
rms of residuals (FIT_STDFIT) = sqrt(WSSR/ndf) : 1.09823
|
||||||
|
variance of residuals (reduced chisquare) = WSSR/ndf : 1.20611
|
||||||
|
|
||||||
|
Final set of parameters Asymptotic Standard Error
|
||||||
|
======================= ==========================
|
||||||
|
a = -1.66858 +/- 0.02581 (1.547%)
|
||||||
|
b = 477.791 +/- 1.272 (0.2662%)
|
||||||
|
|
||||||
|
correlation matrix of the fit parameters:
|
||||||
|
a b
|
||||||
|
a 1.000
|
||||||
|
b -0.962 1.000
|
||||||
|
|
||||||
|
|
||||||
|
*******************************************************************************
|
||||||
|
Mon Nov 4 16:00:07 2019
|
||||||
|
|
||||||
|
|
||||||
|
FIT: data read from 'diode.dat' using 1:2
|
||||||
|
format = x:z
|
||||||
|
#datapoints = 10
|
||||||
|
residuals are weighted equally (unit weight)
|
||||||
|
|
||||||
|
function used for fitting: f(x)
|
||||||
|
f(x) = a*x +b
|
||||||
|
fitted parameters initialized with current variable values
|
||||||
|
|
||||||
|
iter chisq delta/lim lambda a b
|
||||||
|
0 1.2400030000e+06 0.00e+00 3.48e+01 1.000000e+00 1.000000e+00
|
||||||
|
6 9.6489173663e+00 -2.10e-08 3.48e-05 -1.668582e+00 4.777908e+02
|
||||||
|
|
||||||
|
After 6 iterations the fit converged.
|
||||||
|
final sum of squares of residuals : 9.64892
|
||||||
|
rel. change during last iteration : -2.10241e-13
|
||||||
|
|
||||||
|
degrees of freedom (FIT_NDF) : 8
|
||||||
|
rms of residuals (FIT_STDFIT) = sqrt(WSSR/ndf) : 1.09823
|
||||||
|
variance of residuals (reduced chisquare) = WSSR/ndf : 1.20611
|
||||||
|
|
||||||
|
Final set of parameters Asymptotic Standard Error
|
||||||
|
======================= ==========================
|
||||||
|
a = -1.66858 +/- 0.02581 (1.547%)
|
||||||
|
b = 477.791 +/- 1.272 (0.2662%)
|
||||||
|
|
||||||
|
correlation matrix of the fit parameters:
|
||||||
|
a b
|
||||||
|
a 1.000
|
||||||
|
b -0.962 1.000
|
||||||
|
|
||||||
|
|
||||||
|
*******************************************************************************
|
||||||
|
Mon Nov 4 16:00:31 2019
|
||||||
|
|
||||||
|
|
||||||
|
FIT: data read from 'diode.dat' using 1:2
|
||||||
|
format = x:z
|
||||||
|
#datapoints = 10
|
||||||
|
residuals are weighted equally (unit weight)
|
||||||
|
|
||||||
|
function used for fitting: f(x)
|
||||||
|
f(x) = a*x +b
|
||||||
|
fitted parameters initialized with current variable values
|
||||||
|
|
||||||
|
iter chisq delta/lim lambda a b
|
||||||
|
0 1.2400030000e+06 0.00e+00 3.48e+01 1.000000e+00 1.000000e+00
|
||||||
|
6 9.6489173663e+00 -2.10e-08 3.48e-05 -1.668582e+00 4.777908e+02
|
||||||
|
|
||||||
|
After 6 iterations the fit converged.
|
||||||
|
final sum of squares of residuals : 9.64892
|
||||||
|
rel. change during last iteration : -2.10241e-13
|
||||||
|
|
||||||
|
degrees of freedom (FIT_NDF) : 8
|
||||||
|
rms of residuals (FIT_STDFIT) = sqrt(WSSR/ndf) : 1.09823
|
||||||
|
variance of residuals (reduced chisquare) = WSSR/ndf : 1.20611
|
||||||
|
|
||||||
|
Final set of parameters Asymptotic Standard Error
|
||||||
|
======================= ==========================
|
||||||
|
a = -1.66858 +/- 0.02581 (1.547%)
|
||||||
|
b = 477.791 +/- 1.272 (0.2662%)
|
||||||
|
|
||||||
|
correlation matrix of the fit parameters:
|
||||||
|
a b
|
||||||
|
a 1.000
|
||||||
|
b -0.962 1.000
|
||||||
|
|
||||||
|
|
||||||
|
*******************************************************************************
|
||||||
|
Mon Nov 4 16:01:04 2019
|
||||||
|
|
||||||
|
|
||||||
|
FIT: data read from 'diode.dat' using 1:2
|
||||||
|
format = x:z
|
||||||
|
#datapoints = 10
|
||||||
|
residuals are weighted equally (unit weight)
|
||||||
|
|
||||||
|
function used for fitting: f(x)
|
||||||
|
f(x) = a*x +b
|
||||||
|
fitted parameters initialized with current variable values
|
||||||
|
|
||||||
|
iter chisq delta/lim lambda a b
|
||||||
|
0 1.2400030000e+06 0.00e+00 3.48e+01 1.000000e+00 1.000000e+00
|
||||||
|
6 9.6489173663e+00 -2.10e-08 3.48e-05 -1.668582e+00 4.777908e+02
|
||||||
|
|
||||||
|
After 6 iterations the fit converged.
|
||||||
|
final sum of squares of residuals : 9.64892
|
||||||
|
rel. change during last iteration : -2.10241e-13
|
||||||
|
|
||||||
|
degrees of freedom (FIT_NDF) : 8
|
||||||
|
rms of residuals (FIT_STDFIT) = sqrt(WSSR/ndf) : 1.09823
|
||||||
|
variance of residuals (reduced chisquare) = WSSR/ndf : 1.20611
|
||||||
|
|
||||||
|
Final set of parameters Asymptotic Standard Error
|
||||||
|
======================= ==========================
|
||||||
|
a = -1.66858 +/- 0.02581 (1.547%)
|
||||||
|
b = 477.791 +/- 1.272 (0.2662%)
|
||||||
|
|
||||||
|
correlation matrix of the fit parameters:
|
||||||
|
a b
|
||||||
|
a 1.000
|
||||||
|
b -0.962 1.000
|
||||||
|
|
||||||
|
|
||||||
|
*******************************************************************************
|
||||||
|
Mon Nov 4 16:01:25 2019
|
||||||
|
|
||||||
|
|
||||||
|
FIT: data read from 'diode.dat' using 1:2
|
||||||
|
format = x:z
|
||||||
|
#datapoints = 10
|
||||||
|
residuals are weighted equally (unit weight)
|
||||||
|
|
||||||
|
function used for fitting: f(x)
|
||||||
|
f(x) = a*x +b
|
||||||
|
fitted parameters initialized with current variable values
|
||||||
|
|
||||||
|
iter chisq delta/lim lambda a b
|
||||||
|
0 1.2400030000e+06 0.00e+00 3.48e+01 1.000000e+00 1.000000e+00
|
||||||
|
6 9.6489173663e+00 -2.10e-08 3.48e-05 -1.668582e+00 4.777908e+02
|
||||||
|
|
||||||
|
After 6 iterations the fit converged.
|
||||||
|
final sum of squares of residuals : 9.64892
|
||||||
|
rel. change during last iteration : -2.10241e-13
|
||||||
|
|
||||||
|
degrees of freedom (FIT_NDF) : 8
|
||||||
|
rms of residuals (FIT_STDFIT) = sqrt(WSSR/ndf) : 1.09823
|
||||||
|
variance of residuals (reduced chisquare) = WSSR/ndf : 1.20611
|
||||||
|
|
||||||
|
Final set of parameters Asymptotic Standard Error
|
||||||
|
======================= ==========================
|
||||||
|
a = -1.66858 +/- 0.02581 (1.547%)
|
||||||
|
b = 477.791 +/- 1.272 (0.2662%)
|
||||||
|
|
||||||
|
correlation matrix of the fit parameters:
|
||||||
|
a b
|
||||||
|
a 1.000
|
||||||
|
b -0.962 1.000
|
||||||
|
|
||||||
|
|
||||||
|
*******************************************************************************
|
||||||
|
Mon Nov 4 16:33:45 2019
|
||||||
|
|
||||||
|
|
||||||
|
FIT: data read from 'diode.dat' using 1:2
|
||||||
|
format = x:z
|
||||||
|
#datapoints = 10
|
||||||
|
residuals are weighted equally (unit weight)
|
||||||
|
|
||||||
|
function used for fitting: f(x)
|
||||||
|
f(x) = a*x +b
|
||||||
|
fitted parameters initialized with current variable values
|
||||||
|
|
||||||
|
iter chisq delta/lim lambda a b
|
||||||
|
0 1.2400030000e+06 0.00e+00 3.48e+01 1.000000e+00 1.000000e+00
|
||||||
|
6 9.6489173663e+00 -2.10e-08 3.48e-05 -1.668582e+00 4.777908e+02
|
||||||
|
|
||||||
|
After 6 iterations the fit converged.
|
||||||
|
final sum of squares of residuals : 9.64892
|
||||||
|
rel. change during last iteration : -2.10241e-13
|
||||||
|
|
||||||
|
degrees of freedom (FIT_NDF) : 8
|
||||||
|
rms of residuals (FIT_STDFIT) = sqrt(WSSR/ndf) : 1.09823
|
||||||
|
variance of residuals (reduced chisquare) = WSSR/ndf : 1.20611
|
||||||
|
|
||||||
|
Final set of parameters Asymptotic Standard Error
|
||||||
|
======================= ==========================
|
||||||
|
a = -1.66858 +/- 0.02581 (1.547%)
|
||||||
|
b = 477.791 +/- 1.272 (0.2662%)
|
||||||
|
|
||||||
|
correlation matrix of the fit parameters:
|
||||||
|
a b
|
||||||
|
a 1.000
|
||||||
|
b -0.962 1.000
|
Loading…
Reference in New Issue
Block a user