-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weighted voters #28
Comments
This could be useful, for example, for checking settings such as: a city has 100 voters; 60 support projects A1,...,A10 and 40 support projects B1,...,B10. We expect 60% of the budget to go to projects A1,...,A10. In |
Well for your example there is no need for weights Erel, you can just multiply the ballots. For the general answer: every rule support both Profile and MultiProfile (see the docs) where the latter is a mapping from ballots to multiplicity of the ballots. I believe that putting non-integer values would not break anything but one would need to be check that. |
Thanks @Simon-Rey, |
I am not sure what you tried, this works for me:
The counter class does not force int. |
In general though, it is pretty ugly and could be implemented in a better fashion. But at least since the support for multiprofile is there for almost everything, it should not be difficult to have weights as well. If someone wants to implement that, I'm happy to help :) |
Does the library support assigning weights to voters?
The text was updated successfully, but these errors were encountered: