@classmethod
def like(cls, arr, beta=0.9, correct_bias=True):
    """Creates a new EWMA object with its shape and dtype like the specified NumPy array.

        :param arr: The array to take the shape and data type from.
        :type arr: numpy.ndarray
        :param beta: The smoothing factor to use. Must be between 0 and 1.
        :type beta: float
        :param correct_bias: Whether to correct the running average's initialization bias.
        :type correct_bias: bool
        :returns: The new exponentially weighted moving average object.
        :rtype: average.EWMA
        """
    return cls(arr.shape, arr.dtype, beta, correct_bias)
