def _setMinAndMax(self, input, learn):
self.slidingWindow.next(input)<EOL>if self.minval is None and self.maxval is None:<EOL><INDENT>self.minval = input<EOL>self.maxval = input+<NUM_LIT:1>   <EOL>self._setEncoderParams()<EOL><DEDENT>elif learn:<EOL><INDENT>sorted = self.slidingWindow.getSlidingWindow()<EOL>sorted.sort()<EOL>minOverWindow = sorted[<NUM_LIT:0>]<EOL>maxOverWindow = sorted[len(sorted)-<NUM_LIT:1>]<EOL>if minOverWindow < self.minval:<EOL><INDENT>if self.verbosity >= <NUM_LIT:2>:<EOL><INDENT>print("<STR_LIT>"% (self.name, input, self.minval, minOverWindow))<EOL><DEDENT>self.minval = minOverWindow       <EOL>self._setEncoderParams()<EOL><DEDENT>if maxOverWindow > self.maxval:<EOL><INDENT>if self.verbosity >= <NUM_LIT:2>:<EOL><INDENT>print("<STR_LIT>"% (self.name, input, self.maxval, maxOverWindow))<EOL><DEDENT>self.maxval = maxOverWindow       <EOL>self._setEncoderParams()<EOL><DEDENT><DEDENT>
Potentially change the minval and maxval using input.
**The learn flag is currently not supported by cla regions.**