class tinygp.means.Mean(value: Union[JAXArray, Callable[[JAXArray], JAXArray]])[source]#

Bases: object

A wrapper for the GP mean which supports a constant value or a callable

In tinygp, a mean function can be any callable which takes as input a single coordinate and returns the scalar mean at that location.


value – Either a scalar constant, or a callable with the correct signature.