diff --git a/lab_3/data/diode.dat b/lab_3/data/diode.dat new file mode 100644 index 0000000..f5bb925 --- /dev/null +++ b/lab_3/data/diode.dat @@ -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 diff --git a/lab_3/data/diode.gplot b/lab_3/data/diode.gplot new file mode 100644 index 0000000..6e49d3d --- /dev/null +++ b/lab_3/data/diode.gplot @@ -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" diff --git a/lab_3/data/diode.png b/lab_3/data/diode.png new file mode 100644 index 0000000..6e77109 Binary files /dev/null and b/lab_3/data/diode.png differ diff --git a/lab_3/data/fit.log b/lab_3/data/fit.log new file mode 100644 index 0000000..3e477d6 --- /dev/null +++ b/lab_3/data/fit.log @@ -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