GeneratorProfileNoisedFile#
- class svvamp.GeneratorProfileNoisedFile(file_name, relative_noise=0.0, absolute_noise=0.0, exponential_noise=False, sort_voters=False)[source]#
Profile generator loading a file, then adding noise
- Parameters:
file_name (str) – The file for the initial profile.
relative_noise (number) – The relative noise.
absolute_noise (number) – The absolute noise
exponential_noise (bool) – If True, the noise for each candidate follows an exponential distribution whose parameter is proportional to its plurality score in the base profile. If False, the noise is uniform.
Notes
This class is just a combination of
ProfileFromFileandGeneratorProfileNoise.