0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Static Public Member Functions | List of all members
Hypertable::DiscreteRandomGeneratorFactory Class Reference

Static factory class for discrete random generators. More...

#include <DiscreteRandomGeneratorFactory.h>

Static Public Member Functions

static DiscreteRandomGeneratorPtr create (const String &spec)
 Creates a new DiscreteRandomGenerator instance. More...
 

Detailed Description

Static factory class for discrete random generators.

Definition at line 43 of file DiscreteRandomGeneratorFactory.h.

Member Function Documentation

DiscreteRandomGeneratorPtr DiscreteRandomGeneratorFactory::create ( const String spec)
static

Creates a new DiscreteRandomGenerator instance.

spec is one of the following: "uniform" "zipf" "zipf\t--s=<S>" (where S is the seed)

An unknown or invalid spec will cause termination of the application.

Parameters
specThe DiscreteRandomGenerator specification, as described above
Returns
Pointer to a newly created DiscreteRandomGenerator object

Definition at line 46 of file DiscreteRandomGeneratorFactory.cc.


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