source: Backup NB/Talks/MEMPHYS-Trigger/PoissApprox.nb@ 406

Last change on this file since 406 was 388, checked in by campagne, 17 years ago
File size: 6.5 KB
Line 
1(************** Content-type: application/mathematica **************
2
3 Mathematica-Compatible Notebook
4
5This notebook can be used with any Mathematica-compatible
6application, such as Mathematica, MathReader or Publicon. The data
7for the notebook starts with the line containing stars above.
8
9To get the notebook into a Mathematica-compatible application, do
10one of the following:
11
12* Save the data starting with the line of stars above into a file
13 with a name ending in .nb, then open the file inside the
14 application;
15
16* Copy the data starting with the line of stars above to the
17 clipboard, then use the Paste menu command inside the application.
18
19Data for notebooks contains only printable 7-bit ASCII and can be
20sent directly in email or through ftp in text mode. Newlines can be
21CR, LF or CRLF (Unix, Macintosh or MS-DOS style).
22
23NOTE: If you modify the data for this notebook not in a Mathematica-
24compatible application, you must delete the line below containing
25the word CacheID, otherwise Mathematica-compatible applications may
26try to use invalid cache data.
27
28For more information on notebooks and Mathematica-compatible
29applications, contact Wolfram Research:
30 web: http://www.wolfram.com
31 email: info@wolfram.com
32 phone: +1-217-398-0700 (U.S.)
33
34Notebook reader applications are available free of charge from
35Wolfram Research.
36*******************************************************************)
37
38(*CacheID: 232*)
39
40
41(*NotebookFileLineBreakTest
42NotebookFileLineBreakTest*)
43(*NotebookOptionsPosition[ 4243, 146]*)
44(*NotebookOutlinePosition[ 5366, 182]*)
45(* CellTagsIndexPosition[ 5238, 175]*)
46(*WindowFrame->Normal*)
47
48
49
50Notebook[{
51Cell[BoxData[
52 \(\(\(<< Statistics`DiscreteDistributions`\)\(\[IndentingNewLine]\)
53 \)\)], "Input"],
54
55Cell[BoxData[
56 \(PoissPDF[k_, N_, dt_, f_] :=
57 PDF[PoissonDistribution[N*f*dt], k]\)], "Input"],
58
59Cell[CellGroupData[{
60
61Cell[BoxData[
62 \(\(?PoissPDF\)\)], "Input"],
63
64Cell["Global`PoissPDF", "Print",
65 CellTags->"Info3362307184-6683970"],
66
67Cell[BoxData[
68 InterpretationBox[GridBox[{
69 {GridBox[{
70 {\(PoissPDF[k_, N_, dt_, f_] :=
71 PDF[PoissonDistribution[N\ f\ dt], k]\)}
72 },
73 GridBaseline->{Baseline, {1, 1}},
74 ColumnWidths->0.999,
75 ColumnAlignments->{Left}]}
76 },
77 GridBaseline->{Baseline, {1, 1}},
78 ColumnAlignments->{Left}],
79 Definition[ "PoissPDF"],
80 Editable->False]], "Print",
81 CellTags->"Info3362307184-6683970"]
82}, Open ]],
83
84Cell[BoxData[
85 \(Trigger[nTh_, N_, dt_, f_] :=
86 Evaluate[Sum[
87 PoissPDF[k, N, 5/10^9, f]*
88 PoissPDF[nTh - k, N, dt,
89 f]*\((1 - Sum[PoissPDF[j, N, 5/10^9, f], {j, 0, k}])\), {k,
90 0, nTh}]]*\((10^9/5)\)\)], "Input"],
91
92Cell[CellGroupData[{
93
94Cell[BoxData[
95 \(\(?Trigger\)\)], "Input"],
96
97Cell["Global`Trigger", "Print",
98 CellTags->"Info3362307731-1140847"],
99
100Cell[BoxData[
101 InterpretationBox[GridBox[{
102 {GridBox[{
103 {\(Trigger[nTh_, N_, dt_, f_] :=
104 1\/5\ Evaluate[\[Sum]\+\(k = 0\)\%nTh PoissPDF[k, N,
105 5\/10\^9, f]\ PoissPDF[nTh - k, N, dt,
106 f]\ \((1 - \[Sum]\+\(j = 0\)\%k PoissPDF[j, N,
107 5\/10\^9, f])\)]\ 10\^9\)}
108 },
109 GridBaseline->{Baseline, {1, 1}},
110 ColumnWidths->0.999,
111 ColumnAlignments->{Left}]}
112 },
113 GridBaseline->{Baseline, {1, 1}},
114 ColumnAlignments->{Left}],
115 Definition[ "Trigger"],
116 Editable->False]], "Print",
117 CellTags->"Info3362307731-1140847"]
118}, Open ]],
119
120Cell[CellGroupData[{
121
122Cell[BoxData[
123 \(N[Trigger[133, 81000, 425/10^9, 3\ 10^3]]\)], "Input"],
124
125Cell[BoxData[
126 \(57679.52805210537`\)], "Output"]
127}, Open ]],
128
129Cell[CellGroupData[{
130
131Cell[BoxData[
132 \(N[%]\)], "Input"],
133
134Cell[BoxData[
135 \(0.000285805480422623`\)], "Output"]
136}, Open ]],
137
138Cell[CellGroupData[{
139
140Cell[BoxData[
141 \(N[PoissPDF[249, 81000, 425/10^9, 6\ 10^3]*81000*6*10^3]\)], "Input"],
142
143Cell[BoxData[
144 \(205465.67261408278`\)], "Output"]
145}, Open ]]
146},
147FrontEndVersion->"4.1 for Microsoft Windows",
148ScreenRectangle->{{0, 1024}, {0, 685}},
149WindowSize->{495, 527},
150WindowMargins->{{0, Automatic}, {Automatic, 0}}
151]
152
153(*******************************************************************
154Cached data follows. If you edit this Notebook file directly, not
155using Mathematica, you must remove the line containing CacheID at
156the top of the file. The cache data will then be recreated when
157you save this file from within Mathematica.
158*******************************************************************)
159
160(*CellTagsOutline
161CellTagsIndex->{
162 "Info3362307184-6683970"->{
163 Cell[1991, 63, 70, 1, 25, "Print",
164 CellTags->"Info3362307184-6683970"],
165 Cell[2064, 66, 512, 14, 44, "Print",
166 CellTags->"Info3362307184-6683970"]},
167 "Info3362307731-1140847"->{
168 Cell[2940, 96, 69, 1, 25, "Print",
169 CellTags->"Info3362307731-1140847"],
170 Cell[3012, 99, 736, 17, 77, "Print",
171 CellTags->"Info3362307731-1140847"]}
172 }
173*)
174
175(*CellTagsIndex
176CellTagsIndex->{
177 {"Info3362307184-6683970", 4849, 161},
178 {"Info3362307731-1140847", 5046, 166}
179 }
180*)
181
182(*NotebookFileOutline
183Notebook[{
184Cell[1705, 50, 105, 2, 50, "Input"],
185Cell[1813, 54, 104, 2, 50, "Input"],
186
187Cell[CellGroupData[{
188Cell[1942, 60, 46, 1, 30, "Input"],
189Cell[1991, 63, 70, 1, 25, "Print",
190 CellTags->"Info3362307184-6683970"],
191Cell[2064, 66, 512, 14, 44, "Print",
192 CellTags->"Info3362307184-6683970"]
193}, Open ]],
194Cell[2591, 83, 276, 6, 130, "Input"],
195
196Cell[CellGroupData[{
197Cell[2892, 93, 45, 1, 30, "Input"],
198Cell[2940, 96, 69, 1, 25, "Print",
199 CellTags->"Info3362307731-1140847"],
200Cell[3012, 99, 736, 17, 77, "Print",
201 CellTags->"Info3362307731-1140847"]
202}, Open ]],
203
204Cell[CellGroupData[{
205Cell[3785, 121, 74, 1, 30, "Input"],
206Cell[3862, 124, 52, 1, 29, "Output"]
207}, Open ]],
208
209Cell[CellGroupData[{
210Cell[3951, 130, 37, 1, 30, "Input"],
211Cell[3991, 133, 55, 1, 29, "Output"]
212}, Open ]],
213
214Cell[CellGroupData[{
215Cell[4083, 139, 88, 1, 30, "Input"],
216Cell[4174, 142, 53, 1, 29, "Output"]
217}, Open ]]
218}
219]
220*)
221
222
223
224(*******************************************************************
225End of Mathematica Notebook file.
226*******************************************************************)
227
Note: See TracBrowser for help on using the repository browser.