COMBINATORIAL_BLAS
1.3
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
graph500-1.2
generator
btrd_binomial_distribution.h
Go to the documentation of this file.
1
/* Copyright (C) 2009-2010 The Trustees of Indiana University. */
2
/* */
3
/* Use, modification and distribution is subject to the Boost Software */
4
/* License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at */
5
/* http://www.boost.org/LICENSE_1_0.txt) */
6
/* */
7
/* Authors: Jeremiah Willcock */
8
/* Andrew Lumsdaine */
9
10
#ifndef BTRD_BINOMIAL_H
11
#define BTRD_BINOMIAL_H
12
13
/* BTRD algorithm from pages 6--7 of "The Generation of Binomial Random */
14
/* Variates" (Wolfgang Hoermann) -- */
15
/* http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.47.8407 */
16
17
#include <math.h>
18
#include <stddef.h>
19
#include "
splittable_mrg.h
"
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
size_t
btrd_binomial_distribution
(
size_t
n,
double
p,
mrg_state
* state);
25
#ifdef __cplusplus
26
}
27
#endif
28
29
#endif
/* BTRD_BINOMIAL_H */
Generated on Wed Feb 6 2013 01:36:32 for COMBINATORIAL_BLAS by
1.8.1.1