Thrill
0.1
|
Definition at line 32 of file zipf_graph_gen.hpp.
#include <zipf_graph_gen.hpp>
Public Types | |
using | ZipfDistribution = thrill::common::ZipfDistribution |
Public Member Functions | |
ZipfGraphGen (uint64_t _pages) | |
ZipfGraphGen (const ZipfGraphGen &base, uint64_t _pages) | |
template<typename Generator > | |
std::vector< size_t > | GenerateOutgoing (Generator &rng) |
void | Initialize (uint64_t _pages) |
reinitialize the random generator if parameters were changed. More... | |
void | Initialize () |
reinitialize the random generator if parameters were changed. More... | |
Public Attributes | |
double | link_zipf_exponent = 0.5 |
double | link_zipf_scale = 0.3 |
uint64_t | pages |
number of pages in graph More... | |
double | size_mean = 50 |
Gaussian mean and variance of content length. More... | |
double | size_var = 10 |
Private Attributes | |
std::normal_distribution< double > | content_length_dist_ |
Gaussian random variable for content length of a page. More... | |
ZipfDistribution | link_zipf_ |
Zipf random variable for outgoing links. More... | |
Definition at line 35 of file zipf_graph_gen.hpp.
|
inlineexplicit |
Definition at line 49 of file zipf_graph_gen.hpp.
References ZipfGraphGen::Initialize().
|
inline |
Definition at line 53 of file zipf_graph_gen.hpp.
References ZipfGraphGen::Initialize().
|
inline |
Definition at line 77 of file zipf_graph_gen.hpp.
References ZipfGraphGen::content_length_dist_, and ZipfGraphGen::link_zipf_.
Referenced by main().
|
inline |
reinitialize the random generator if parameters were changed.
Definition at line 61 of file zipf_graph_gen.hpp.
References ZipfGraphGen::content_length_dist_, ZipfGraphGen::link_zipf_, ZipfGraphGen::size_mean, and ZipfGraphGen::size_var.
Referenced by main().
|
inline |
reinitialize the random generator if parameters were changed.
Definition at line 72 of file zipf_graph_gen.hpp.
Referenced by ZipfGraphGen::ZipfGraphGen().
|
private |
Gaussian random variable for content length of a page.
Definition at line 95 of file zipf_graph_gen.hpp.
Referenced by ZipfGraphGen::GenerateOutgoing(), and ZipfGraphGen::Initialize().
|
private |
Zipf random variable for outgoing links.
Definition at line 98 of file zipf_graph_gen.hpp.
Referenced by ZipfGraphGen::GenerateOutgoing(), and ZipfGraphGen::Initialize().
double link_zipf_exponent = 0.5 |
Definition at line 47 of file zipf_graph_gen.hpp.
Referenced by main().
double link_zipf_scale = 0.3 |
Zipf distribution scale and exponent for generating outgoing links over the page number universe.
Definition at line 46 of file zipf_graph_gen.hpp.
Referenced by main().
uint64_t pages |
number of pages in graph
Definition at line 38 of file zipf_graph_gen.hpp.
double size_mean = 50 |
Gaussian mean and variance of content length.
Definition at line 41 of file zipf_graph_gen.hpp.
Referenced by ZipfGraphGen::Initialize(), and main().
double size_var = 10 |
Definition at line 42 of file zipf_graph_gen.hpp.
Referenced by ZipfGraphGen::Initialize(), and main().