lsst.meas.algorithms gc86a7ac1bc+18f2e97416
Loading...
Searching...
No Matches
lsst.meas.algorithms.findGlintTrails.FittedLine Class Reference

Public Member Functions

 __init__ (self, center, direction)
 distance (self, x, y)

Public Attributes

 center = center
 direction = direction

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

lsst.meas.algorithms.findGlintTrails.FittedLine.__init__ ( self,
center,
direction )

Definition at line 49 of file findGlintTrails.py.

Member Function Documentation

◆ distance()

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.

Member Data Documentation

◆ center

lsst.meas.algorithms.findGlintTrails.FittedLine.center = center

Definition at line 50 of file findGlintTrails.py.

◆ direction

lsst.meas.algorithms.findGlintTrails.FittedLine.direction = direction

Definition at line 51 of file findGlintTrails.py.


The documentation for this class was generated from the following file: