craftutils.observation.epoch.Time.mean(axis=None, dtype=None, out=None, keepdims=False, *, where=True)

Mean along a given axis.

This is similar to mean(), but adapted to ensure that the full precision given by the two doubles jd1 and jd2 is used, and that corresponding attributes are copied.

Note that the out argument is present only for compatibility with np.mean; since Time instances are immutable, it is not possible to have an actual out to store the result in.

Similarly, the dtype argument is also present for compatibility only; it has no meaning for Time.

Parameters

axisNone or int or tuple of ints, optional

Axis or axes along which the means are computed. The default is to compute the mean of the flattened array.

dtypeNone

Only present for compatibility with mean(), must be None.

outNone

Only present for compatibility with mean(), must be None.

keepdimsbool, optional

If this is set to True, the axes which are reduced are left in the result as dimensions with size one. With this option, the result will broadcast correctly against the input array.

wherearray_like of bool, optional

Elements to include in the mean. See ~numpy.ufunc.reduce for details.

Returns

mTime

A new Time instance containing the mean values