fpmas 1.6
Static Public Member Functions | Static Public Attributes | List of all members
fpmas::model::RandomNeighbors Struct Reference

#include <model.h>

Collaboration diagram for fpmas::model::RandomNeighbors:
Collaboration graph
[legend]

Static Public Member Functions

static void seed (random::DistributedGenerator<>::result_type seed)
 

Static Public Attributes

static random::DistributedGenerator rd
 

Detailed Description

Helper class that defines a static random::DistributedGenerator used by the Neighbors class (for any AgentType).

The random generator can be seeded by the user to control random neighbors selection and shuffling.

See also
Neighbors::shuffle()
Neighbors::random()

Member Function Documentation

◆ seed()

void fpmas::model::RandomNeighbors::seed ( random::DistributedGenerator<>::result_type  seed)
static

Seeds the random generator.

Parameters
seedrandom seed

Member Data Documentation

◆ rd

random::DistributedGenerator fpmas::model::RandomNeighbors::rd
static

Static random generator.


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