FittedLine#

class lsst.meas.algorithms.FittedLine(center, direction)#

Bases: object

A straight line through center along the unit vector direction.

Parameters#

centernumpy.ndarray

(x, y) of a point on the line: the mean of the points it was fit to.

directionnumpy.ndarray

Unit vector along the line; its sign is arbitrary.

Methods Summary

distance(x, y)

Compute the perpendicular distance of points from the line.

Methods Documentation

distance(x, y)#

Compute the perpendicular distance of points from the line.

Parameters#

x, ynumpy.ndarray or float

Coordinates of the points.

Returns#

distancenumpy.ndarray or float

Distance of each point from the line, in the units of x and y.