






"""simple docstring"""


from statistics import mean, stdev



def 					lowerCAmelCase				(    __UpperCamelCase		,       __UpperCamelCase = 3 ):




  """simple docstring"""







  __A									= min(__UpperCamelCase )
  __A									= max(__UpperCamelCase )
  # normalize data
  return [round((x - x_min) / (x_max - x_min)		,       __UpperCamelCase ) for x in data]





def 					lowerCAmelCase				(    __UpperCamelCase		,       __UpperCamelCase = 3 ):




  """simple docstring"""







  __A									= mean(__UpperCamelCase )
  __A									= stdev(__UpperCamelCase )
  # standardize data
  return [round((x - mu) / (sigma)		,       __UpperCamelCase ) for x in data]












"""simple docstring"""


import warnings

from ...utils import logging
from .image_processing_segformer import SegformerImageProcessor


lowercase_				     =     logging.get_logger(__name__)


class 					snake_case		(							_lowerCAmelCase						):


   '''simple docstring'''

   def __init__(	self :     Optional[int],       *_lowerCamelCase :     Union[str, Any],       **_lowerCamelCase :     Dict  ):

     '''simple docstring'''
     warnings.warn(
         '''The class SegformerFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
         ''' Please use SegformerImageProcessor instead.''',       _lowerCamelCase,       )
     super().__init__(*_lowerCamelCase,       **_lowerCamelCase  )




