LEFT | RIGHT |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2008 Timo Bingmann | 3 * Copyright (c) 2008 Timo Bingmann |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 } | 97 } |
98 | 98 |
99 return data; | 99 return data; |
100 } | 100 } |
101 | 101 |
102 } // unnamed namespace | 102 } // unnamed namespace |
103 | 103 |
104 | 104 |
105 int main (int argc, char *argv[]) | 105 int main (int argc, char *argv[]) |
106 { | 106 { |
| 107 CommandLine cmd; |
| 108 cmd.Parse(argc, argv); |
| 109 |
107 unsigned int probes = 1000000; | 110 unsigned int probes = 1000000; |
108 double precision = 0.01; | 111 double precision = 0.01; |
109 | 112 |
110 GnuplotCollection gnuplots ("main-random-variables.pdf"); | 113 GnuplotCollection gnuplots ("main-random-variables.pdf"); |
111 gnuplots.SetTerminal ("pdf enhanced"); | 114 gnuplots.SetTerminal ("pdf enhanced"); |
112 | 115 |
113 { | 116 { |
114 Gnuplot plot; | 117 Gnuplot plot; |
115 plot.SetTitle ("UniformRandomVariable"); | 118 plot.SetTitle ("UniformRandomVariable"); |
116 plot.AppendExtra ("set yrange [0:]"); | 119 plot.AppendExtra ("set yrange [0:]"); |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 plot.AddDataset ( Gnuplot2dFunction ("Erlang(x, 2, 5.0)", | 555 plot.AddDataset ( Gnuplot2dFunction ("Erlang(x, 2, 5.0)", |
553 "ErlangDist(x, 2, 5.0)") ); | 556 "ErlangDist(x, 2, 5.0)") ); |
554 | 557 |
555 gnuplots.AddPlot (plot); | 558 gnuplots.AddPlot (plot); |
556 } | 559 } |
557 | 560 |
558 gnuplots.GenerateOutput (std::cout); | 561 gnuplots.GenerateOutput (std::cout); |
559 | 562 |
560 return 0; | 563 return 0; |
561 } | 564 } |
LEFT | RIGHT |