LeastSquaresOptimizer

class ssapy.rvsampler.LeastSquaresOptimizer(probfn, initparam, translatorcls, absstep=None, fracstep=None, **kw)[source][source]

Bases: object

Base class for LeastSquaresOptimizers

Methods Summary

optimize(**fit_kws)

Run the optimizer and return the resulting fit parameters.

resid(p)

Methods Documentation

optimize(**fit_kws)[source][source]

Run the optimizer and return the resulting fit parameters.

Returns:

fit – Least-squares fit as [x, y, z, vx, vy, vz] in meters, and meters/second.

Return type:

(6,) array_like

resid(p)[source][source]