#include <cmath>
#include "modes.hh"
#include "utils.hh"
Go to the source code of this file.
|
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.
|
|
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.
|
|
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).
|
|