doc: add differential measurement histograms

parent a8dba5f2
......@@ -7,13 +7,26 @@ tdc.pdf: tdc.tex
rofreq.pdf: rofreq.csv
./ rofreq.csv rofreq.pdf
testreport.pdf: testreport.tex rofreq.pdf
mhistll.pdf: series3a.csv
./ series3a.csv mhistll.pdf 0 fit
mhistlh.pdf: series3a.csv
./ series3b.csv mhistlh.pdf 0 fit
mhisthh.pdf: series3a.csv
./ series3c.csv mhisthh.pdf 0 fit
mhisthl.pdf: series3a.csv
./ series3d.csv mhisthl.pdf 0 fit
testreport.pdf: testreport.tex rofreq.pdf mhistll.pdf mhistlh.pdf mhisthh.pdf mhisthl.pdf
pdflatex $<
pdflatex $<
rm -f tdc.pdf tdc.aux tdc.log
rm -f rofreq.pdf
rm -f mhistll.pdf mhistlh.pdf mhisthh.pdf mhisthl.pdf
rm -f testreport.pdf testreport.aux testreport.log
.PHONY: clean
import csv
import sys
import pylab
filename = sys.argv[1]
ofilename = sys.argv[2]
polarity = sys.argv[3]
fit = (len(sys.argv) > 4) and (sys.argv[4] == "fit")
csv_reader = csv.reader(open(filename, 'rb'), delimiter=',')
data = []
for row in csv_reader:
if (polarity.find(row[0]) != -1):
m, M = min(data), max(data)
mu = pylab.mean(data)
sigma = pylab.std(data)
s = "%s Polarity: %s Samples: %d\nMean: %f Std: %f P/p: %f" % (filename, polarity, len(data), mu, sigma, M-m)
grid = pylab.linspace(m, M, 100)
if fit:
densityvalues = pylab.normpdf(grid, mu, sigma)
pylab.plot(grid, densityvalues, 'r-')
pylab.hist(data, 40, normed=True)
pylab.xlabel("Time difference (ps)")
......@@ -51,14 +51,38 @@
\caption{Dependence of ring oscillator frequency on temperature.}
\caption{Dependence of ring oscillator frequencies on temperature.}
\subsection{Differential TDC}
\caption{Differential measurements: low temperature calibration, low temperature measurements.}
\subsection{Temperature stability}
\caption{Differential measurements: low temperature calibration, high temperature measurements.}
\caption{Differential measurements: high temperature calibration, high temperature measurements.}
\caption{Differential measurements: high temperature calibration, low temperature measurements.}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment