Thrill  0.1
hypergeometric_distribution< int_t, fp_t > Class Template Reference

## Detailed Description

### template<typename int_t = int64_t, typename fp_t = double> class thrill::common::hypergeometric_distribution< int_t, fp_t >

Definition at line 73 of file hypergeometric_distribution.hpp. Inheritance diagram for hypergeometric_distribution< int_t, fp_t >:

#include <hypergeometric_distribution.hpp>

## Public Types

using real_type = fp_t

using result_type = int_t

## Public Member Functions

hypergeometric_distribution (size_t seed=0)

int_t operator() (int_t good, int_t bad, int_t sample)

void seed (size_t seed_val)

## Private Member Functions

fp_t loggam (fp_t x) const

int_t rk_hypergeometric (int_t good, int_t bad, int_t sample)

int_t rk_hypergeometric_hrua (int_t good, int_t bad, int_t sample)

int_t rk_hypergeometric_hyp (int_t good, int_t bad, int_t sample)

## Private Attributes

std::uniform_real_distribution
< fp_t >
dist

std::mt19937 rng

## Static Private Attributes

static constexpr fp_t D1 = 1.7155277699214135

static constexpr fp_t D2 = 0.8989161620588988

## Member Typedef Documentation

 using real_type = fp_t

Definition at line 77 of file hypergeometric_distribution.hpp.

 using result_type = int_t

Definition at line 76 of file hypergeometric_distribution.hpp.

## Constructor & Destructor Documentation

 hypergeometric_distribution ( size_t seed = 0 )
inline

Definition at line 79 of file hypergeometric_distribution.hpp.

## Member Function Documentation

 fp_t loggam ( fp_t x ) const
inlineprivate
 int_t operator() ( int_t good, int_t bad, int_t sample )
inline

Definition at line 83 of file hypergeometric_distribution.hpp.

 int_t rk_hypergeometric ( int_t good, int_t bad, int_t sample )
inlineprivate
 int_t rk_hypergeometric_hrua ( int_t good, int_t bad, int_t sample )
inlineprivate
 int_t rk_hypergeometric_hyp ( int_t good, int_t bad, int_t sample )
inlineprivate
 void seed ( size_t seed_val )
inline

Definition at line 96 of file hypergeometric_distribution.hpp.

## Member Data Documentation

 constexpr fp_t D1 = 1.7155277699214135
staticprivate
 constexpr fp_t D2 = 0.8989161620588988
staticprivate
 std::uniform_real_distribution dist
private

Definition at line 238 of file hypergeometric_distribution.hpp.

 std::mt19937 rng
private

Definition at line 237 of file hypergeometric_distribution.hpp.

The documentation for this class was generated from the following file:
{"ft_lang_label":"__label__en","ft_lang_prob":0.65110254,"math_prob":0.85743386,"size":2539,"snap":"2019-13-2019-22","text_gpt3_token_len":623,"char_repetition_ratio":0.31794873,"word_repetition_ratio":0.19421488,"special_character_ratio":0.23946436,"punctuation_ratio":0.22985074,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9903144,"pos_list":[0,1,2],"im_url_duplicate_count":[null,8,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-05-25T13:50:33Z\",\"WARC-Record-ID\":\"<urn:uuid:6c019cda-0512-47ec-944d-97821efbe223>\",\"Content-Length\":\"30747\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b4c188d6-0047-4ca5-bb17-e7e46582f30a>\",\"WARC-Concurrent-To\":\"<urn:uuid:b9a728ec-f17e-4304-811c-2cf9242dcf99>\",\"WARC-IP-Address\":\"104.27.190.217\",\"WARC-Target-URI\":\"http://project-thrill.org/docs/master/classthrill_1_1common_1_1hypergeometric__distribution.html\",\"WARC-Payload-Digest\":\"sha1:JYVEDXTNNGZY7UOP7FKSOUALP4NDRBMZ\",\"WARC-Block-Digest\":\"sha1:2IW6LQFSP47E2AJRUENIGKLPXJTS5HF7\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-22/CC-MAIN-2019-22_segments_1558232258058.61_warc_CC-MAIN-20190525124751-20190525150751-00044.warc.gz\"}"}