:py:mod:`pemtk.fit._stats` ========================== .. py:module:: pemtk.fit._stats Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: pemtk.fit._stats.setPoissWeights .. py:function:: setPoissWeights(lam, wShape) Poissionian weights. Set using https://numpy.org/devdocs/reference/random/generated/numpy.random.Generator.poisson.html Pass (lambda, shape) If int or float, set weights = rng.poisson(weights, data.shape). Note this operates per data-point, not per dimension. - If Xarray or np.array, use directly - must match size of data along key dimension, e.g. passing weights = rng.poisson(weights, data.t.size) will generate a distribution along the t-dimension.