Utopia  2
Framework for studying models of complex & adaptive systems.
Namespaces | Functions
revision.hh File Reference
#include <cmath>
#include "modes.hh"
#include "utils.hh"
Include dependency graph for revision.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Utopia
 
 Utopia::Models
 
 Utopia::Models::Opinionet
 
 Utopia::Models::Opinionet::Revision
 

Functions

template<typename NWType , typename VertexDescType >
void Utopia::Models::Opinionet::Revision::update_opinion_HK (const VertexDescType v, NWType &nw, const double susceptibility, const double tolerance, const Opinion_space_type opinion_space)
 Hegselmann-Krause opinion update function. More...
 
template<typename NWType , typename RNGType , typename VertexDescType >
void Utopia::Models::Opinionet::Revision::update_opinion_Deffuant (const VertexDescType v, NWType &nw, const double susceptibility, const double tolerance, const Opinion_space_type opinion_space, std::uniform_real_distribution< double > &prob_distr, RNGType &rng)
 Deffuant opinion update function. More...
 
template<typename NWType , typename RNGType >
void Utopia::Models::Opinionet::Revision::rewire_random_edge (NWType &nw, const double tolerance, const double weighting, RNGType &rng)
 
template<typename NWType , typename RNGType >
void Utopia::Models::Opinionet::Revision::revision (NWType &nw, const double susceptibility, const double tolerance, const double weighting, const Interaction_type interaction, const Opinion_space_type opinion_space, const Rewiring rewire, std::uniform_real_distribution< double > &prob_distr, RNGType &rng)
 Performs an opinion update and edge rewiring (if enabled). More...