Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
TDC core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
TDC core
Commits
99294c79
Commit
99294c79
authored
Nov 07, 2011
by
Sebastien Bourdeauducq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: add differential measurement histograms
parent
a8dba5f2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
2 deletions
+70
-2
Makefile
doc/Makefile
+14
-1
mhist.py
doc/mhist.py
+31
-0
testreport.tex
doc/testreport.tex
+25
-1
No files found.
doc/Makefile
View file @
99294c79
...
...
@@ -7,13 +7,26 @@ tdc.pdf: tdc.tex
rofreq.pdf
:
rofreq.py rofreq.csv
./rofreq.py rofreq.csv rofreq.pdf
testreport.pdf
:
testreport.tex rofreq.pdf
mhistll.pdf
:
mhist.py series3a.csv
./mhist.py series3a.csv mhistll.pdf 0 fit
mhistlh.pdf
:
mhist.py series3a.csv
./mhist.py series3b.csv mhistlh.pdf 0 fit
mhisthh.pdf
:
mhist.py series3a.csv
./mhist.py series3c.csv mhisthh.pdf 0 fit
mhisthl.pdf
:
mhist.py series3a.csv
./mhist.py series3d.csv mhisthl.pdf 0 fit
testreport.pdf
:
testreport.tex rofreq.pdf mhistll.pdf mhistlh.pdf mhisthh.pdf mhisthl.pdf
pdflatex
$<
pdflatex
$<
clean
:
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
doc/mhist.py
0 → 100755
View file @
99294c79
#!/usr/bin/python
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
):
data
.
append
((
float
(
row
[
5
])
-
float
(
row
[
2
]))
*
8000.0
/
2.0
**
13.0
)
m
,
M
=
min
(
data
),
max
(
data
)
mu
=
pylab
.
mean
(
data
)
sigma
=
pylab
.
std
(
data
)
s
=
"
%
s Polarity:
%
s Samples:
%
d
\n
Mean:
%
f Std:
%
f P/p:
%
f"
%
(
filename
,
polarity
,
len
(
data
),
mu
,
sigma
,
M
-
m
)
pylab
.
title
(
s
)
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)"
)
pylab
.
ylabel
(
"Density"
)
pylab
.
savefig
(
ofilename
)
#pylab.show()
doc/testreport.tex
View file @
99294c79
...
...
@@ -51,14 +51,38 @@
\begin{figure}
[h]
\includegraphics
[width=\textwidth]
{
rofreq.pdf
}
\caption
{
Dependence of ring oscillator frequenc
y
on temperature.
}
\caption
{
Dependence of ring oscillator frequenc
ies
on temperature.
}
\label
{
fig:rofreq
}
\end{figure}
\subsection
{
Differential TDC
}
\begin{figure}
[h]
\includegraphics
[width=\textwidth]
{
mhistll.pdf
}
\caption
{
Differential measurements: low temperature calibration, low temperature measurements.
}
\label
{
fig:mhistll
}
\end{figure}
\subsection
{
Temperature stability
}
\begin{figure}
[h]
\includegraphics
[width=\textwidth]
{
mhistlh.pdf
}
\caption
{
Differential measurements: low temperature calibration, high temperature measurements.
}
\label
{
fig:mhistlh
}
\end{figure}
\begin{figure}
[h]
\includegraphics
[width=\textwidth]
{
mhisthh.pdf
}
\caption
{
Differential measurements: high temperature calibration, high temperature measurements.
}
\label
{
fig:mhisthh
}
\end{figure}
\begin{figure}
[h]
\includegraphics
[width=\textwidth]
{
mhisthl.pdf
}
\caption
{
Differential measurements: high temperature calibration, low temperature measurements.
}
\label
{
fig:mhisthl
}
\end{figure}
\section
{
Conclusions
}
\end{document}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment