



"""simple docstring"""

from ...utils import is_torch_available, is_transformers_available


if is_transformers_available() and is_torch_available():
     from .pipeline_vq_diffusion import LearnedClassifierFreeSamplingEmbeddings, VQDiffusionPipeline










"""simple docstring"""

from statistics import mean, stdev




def __lowercase    (							_a	,    _a = 3					):
    snake_case_				:  Optional[int]       =			min(_a					)
    snake_case_				:  str       =			max(_a					)
    # normalize data
    return [round((x - x_min) / (x_max - x_min)	,    _a					) for x in data]






def __lowercase    (							_a	,    _a = 3					):
    snake_case_				:  Any       =			mean(_a					)
    snake_case_				:  str       =			stdev(_a					)
    # standardize data
    return [round((x - mu) / (sigma)	,    _a					) for x in data]





