GiulioRossetti / ndlib

Network Diffusion Library - (for NetworkX and iGraph)
http://ndlib.readthedocs.io/
BSD 2-Clause "Simplified" License
272 stars 80 forks source link

Allowing the ability to set the initial distribution for real-valued opinion models #250

Open tommybru opened 1 year ago

tommybru commented 1 year ago

Is your feature request related to a problem? Please describe. Developers should be able to specify the initial distribution range for opinion models (like AlgorithmicBias and WHK) whose initial status for nodes is a real value

Describe the solution you'd like Optional model parameters to set the range of the sampling distribution

Describe alternatives you've considered A function like add_model_initial_configuration that would allow for setting the node status with real-values

Additional context add_model_initial_configuration does not support numerical real values (it only supports statuses like Infected and Susceptible that are a part of a model's available_statuses). The opinion models with real-valued statuses already override the configuration to draw from random value generators