Files
simpeg/SimPEG/Inverse/BetaSchedule.py
T
2014-01-16 13:22:46 -08:00

13 lines
348 B
Python

class Cooling(object):
"""Simple Beta Schedule"""
beta0 = None #: The initial beta value, set to none means that it will be approximated in the first iteration.
beta_coolingFactor = 2.
def getBeta(self):
if self._beta is None:
return self.beta0
return self._beta / self.beta_coolingFactor