Mercurial > ift6266
comparison transformations/PoivreSel.py @ 104:fe6f96951ed1
corrige nom de la methode get_settings_names_determined_by_complexity(self,complexity)
author | SylvainPL <sylvain.pannetier.lebeuf@umontreal.ca> |
---|---|
date | Fri, 12 Feb 2010 10:21:21 -0500 |
parents | 553acf4beffb |
children | 5e00ed18ae32 |
comparison
equal
deleted
inserted
replaced
103:ebf8b438362e | 104:fe6f96951ed1 |
---|---|
28 self.effectuer=1 #Vaut 1 si on effectue et 0 sinon. | 28 self.effectuer=1 #Vaut 1 si on effectue et 0 sinon. |
29 | 29 |
30 def get_settings_names(self): | 30 def get_settings_names(self): |
31 return ['effectuer'] | 31 return ['effectuer'] |
32 | 32 |
33 def get_settings_name_determined_by_complexity(self,complexity): | 33 def get_settings_names_determined_by_complexity(self,complexity): |
34 return ['proportion_bruit'] | 34 return ['proportion_bruit'] |
35 | 35 |
36 def regenerate_parameters(self, complexity): | 36 def regenerate_parameters(self, complexity): |
37 self.proportion_bruit = float(complexity)/5 | 37 self.proportion_bruit = float(complexity)/5 |
38 self.nb_chng=int(1024*self.proportion_bruit) | 38 self.nb_chng=int(1024*self.proportion_bruit) |