def _movingAverage(data, n):
    out = np.cumsum(data)
    out[n:] = out[n:] - out[:-n]
    return out[n - 1:] / n
Initialize hmodel's global parameters in-place.
dataset/ETHPy150Open nasa/RHEAS/src/drought.py/_movingAverage--crossover with--dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/init/FromScratchMult.py/init_global_params