Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
zigrandom.cc File Reference#include <limits.h> #include <stdio.h> #include <string.h> #include <cmath> #include "zigrandom.h"
Include dependency graph for zigrandom.cc:
Go to the source code of this file.
Detailed Description========================================================================== This code is Copyright (C) 2005, Jurgen A. Doornik. Permission to use this code for non-commercial purposes is hereby given, provided proper reference is made to: Doornik, J.A. (2005), "An Improved Ziggurat Method to Generate Normal Random Samples", mimeo, Nuffield College, University of Oxford, and www.doornik.com/research. or the published version when available. This reference is still required when using modified versions of the code. This notice should be maintained in modified versions of the code. No warranty is given regarding the correctness of this code. ========================================================================== Definition in file zigrandom.cc. Define Documentation
Definition at line 50 of file zigrandom.cc. Referenced by DRan_MWC8222(), IRan_MWC8222(), VecDRan_MWC8222(), and VecIRan_MWC8222().
Definition at line 51 of file zigrandom.cc.
Definition at line 52 of file zigrandom.cc. Referenced by RanSetSeed_MWC8222().
Definition at line 49 of file zigrandom.cc. Referenced by DRan_MWC8222(), IRan_MWC8222(), RanSetSeed_MWC8222(), VecDRan_MWC8222(), and VecIRan_MWC8222().
Value:
do \ { u1 = (decltype(u1))(*s_fnDRanu)(); u1 = 2 * u1 - 1;\ u2 = (decltype(u2))(*s_fnDRanu)(); u2 = 2 * u2 - 1;\ d = u1 * u1 + u2 * u2; \ } while (d >= 1); \ d = std::sqrt( (-2.f / d) * std::log(d) ); \ u1 *= d; u2 *= d Definition at line 210 of file zigrandom.cc. Referenced by DRanNormalPolar(), and FRanNormalPolar(). Function Documentation
Definition at line 263 of file zigrandom.cc. Referenced by DProbNormal().
Definition at line 296 of file zigrandom.cc. Referenced by DRanQuanNormal(), DRanQuanNormalZig(), DRanQuanNormalZig32(), DRanQuanNormalZig32Vec(), DRanQuanNormalZigVec(), and FRanQuanNormal().
Definition at line 85 of file zigrandom.cc. Referenced by RanSetRan().
Definition at line 221 of file zigrandom.cc. Referenced by DRanQuanNormal().
Definition at line 300 of file zigrandom.cc.
Definition at line 138 of file zigrandom.cc. Referenced by DRanNormalTail(), DRanNormalZig(), and DRanNormalZigVec().
Definition at line 193 of file zigrandom.cc. Referenced by RanSetRanExt().
Definition at line 246 of file zigrandom.cc. Referenced by FRanQuanNormal().
Definition at line 304 of file zigrandom.cc.
Definition at line 30 of file zigrandom.cc. Referenced by RanSetSeed_MWC8222().
Definition at line 75 of file zigrandom.cc. Referenced by RanSetRan().
Definition at line 142 of file zigrandom.cc. Referenced by DRanNormalZig(), DRanNormalZig32(), and DRanNormalZig32Vec().
Definition at line 189 of file zigrandom.cc. Referenced by RanSetRanExt().
Definition at line 171 of file zigrandom.cc.
Definition at line 197 of file zigrandom.cc.
Definition at line 166 of file zigrandom.cc. Referenced by RanNormalSetSeedZig(), and RanNormalSetSeedZig32().
Definition at line 57 of file zigrandom.cc. Referenced by RanSetRan().
Definition at line 146 of file zigrandom.cc. Referenced by DRanNormalZig32Vec(), and DRanNormalZigVec().
Definition at line 150 of file zigrandom.cc. Referenced by DRanNormalZigVec().
Definition at line 110 of file zigrandom.cc.
Definition at line 95 of file zigrandom.cc. Referenced by RanSetRan(). Variable Documentation
Definition at line 55 of file zigrandom.cc.
Definition at line 130 of file zigrandom.cc.
Definition at line 219 of file zigrandom.cc. Definition at line 132 of file zigrandom.cc. Definition at line 133 of file zigrandom.cc.
Definition at line 245 of file zigrandom.cc.
Definition at line 136 of file zigrandom.cc.
Definition at line 135 of file zigrandom.cc.
Definition at line 134 of file zigrandom.cc.
Definition at line 54 of file zigrandom.cc.
Definition at line 53 of file zigrandom.cc. |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:04 2016 by Doxygen 1.6.3 |