Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ZipfGraphGen Class Reference

Detailed Description

Definition at line 32 of file zipf_graph_gen.hpp.

+ Collaboration diagram for ZipfGraphGen:

#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...
 

Member Typedef Documentation

Constructor & Destructor Documentation

ZipfGraphGen ( uint64_t  _pages)
inlineexplicit

Definition at line 49 of file zipf_graph_gen.hpp.

References ZipfGraphGen::Initialize().

ZipfGraphGen ( const ZipfGraphGen base,
uint64_t  _pages 
)
inline

Definition at line 53 of file zipf_graph_gen.hpp.

References ZipfGraphGen::Initialize().

Member Function Documentation

std::vector<size_t> GenerateOutgoing ( Generator &  rng)
inline

Definition at line 77 of file zipf_graph_gen.hpp.

References ZipfGraphGen::content_length_dist_, and ZipfGraphGen::link_zipf_.

Referenced by main().

void Initialize ( uint64_t  _pages)
inline
void Initialize ( )
inline

reinitialize the random generator if parameters were changed.

Definition at line 72 of file zipf_graph_gen.hpp.

References ZipfGraphGen::pages.

Referenced by ZipfGraphGen::ZipfGraphGen().

Member Data Documentation

std::normal_distribution<double> content_length_dist_
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().

ZipfDistribution link_zipf_
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 ZipfGraphGen::Initialize(), and 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 ZipfGraphGen::Initialize(), and main().

uint64_t pages

number of pages in graph

Definition at line 38 of file zipf_graph_gen.hpp.

Referenced by ZipfGraphGen::Initialize().

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().


The documentation for this class was generated from the following file: