PolynomialRVTrend

class twobody.PolynomialRVTrend(coeffs=None, t0=None)[source]

Bases: twobody.bary_trends.RVTrend

Specify a polynomial trend in radial velocities by specifying the polynomial coefficients and optionally a reference time.

Note that the coefficients are expected in the reverse order of those expected by numpy’s poly functionality, i.e. coeffs[0] is the constant term, coeffs[1] is the linear term, etc.

Parameters
coeffsiterable

A tuple or list of Quantity objects that have the appropriate velocity per time units.

t0astropy.time.Time, numeric (optional)

The reference time for the trend.

Methods Summary

__call__(t)

Evaluate the predicted velocity at the specified time.

Methods Documentation

__call__(t)[source]

Evaluate the predicted velocity at the specified time.