|
lsst.meas.algorithms gc86a7ac1bc+215fc79fec
|
Public Member Functions | |
| __init__ (self, center, direction) | |
| distance (self, x, y) | |
Public Attributes | |
| center = center | |
| direction = direction | |
A straight line through ``center`` along the unit vector
``direction``.
Parameters
----------
center : `numpy.ndarray`
``(x, y)`` of a point on the line: the mean of the points it was fit
to.
direction : `numpy.ndarray`
Unit vector along the line; its sign is arbitrary.
Definition at line 36 of file findGlintTrails.py.
| lsst.meas.algorithms.findGlintTrails.FittedLine.__init__ | ( | self, | |
| center, | |||
| direction ) |
Definition at line 49 of file findGlintTrails.py.
| lsst.meas.algorithms.findGlintTrails.FittedLine.distance | ( | self, | |
| x, | |||
| y ) |
Compute the perpendicular distance of points from the line.
Parameters
----------
x, y : `numpy.ndarray` or `float`
Coordinates of the points.
Returns
-------
distance : `numpy.ndarray` or `float`
Distance of each point from the line, in the units of ``x`` and
``y``.
Definition at line 53 of file findGlintTrails.py.
| lsst.meas.algorithms.findGlintTrails.FittedLine.center = center |
Definition at line 50 of file findGlintTrails.py.
| lsst.meas.algorithms.findGlintTrails.FittedLine.direction = direction |
Definition at line 51 of file findGlintTrails.py.