code: def setHalfLife(self, halfLife, timeUnit):
          
          self._timeUnit = timeUnit
          self._decayFactor = exp(log(0.5) / halfLife)
          return self
docs: Set number of batches after which the centroids of that
          particular batch has half the weightage.