Class StarMatch

Class Documentation

class StarMatch

A hanger for star associations.

Public Functions

StarMatch(const FatPoint &point1, const FatPoint &point2, std::shared_ptr<const BaseStar> star1, std::shared_ptr<const BaseStar> star2)

constructor.

gives 2 points (that contain the geometry), plus pointers to the Star objects (which are there for user convenience).

double computeDistance(const AstrometryTransform &transform) const

returns the distance from transform(point1) to point2.

double computeChi2(const AstrometryTransform &transform) const

returns the chi2 (using errors in the FatPoint’s)

void setDistance(const AstrometryTransform &transform)

to be used before sorting on distances.

double getDistance() const

returns the value computed by the above one.

void swap()
StarMatch()
~StarMatch()

Public Members

FatPoint point1
FatPoint point2

the Star pointers (the pointer is in fact generic, pointed data is never used).

2 points

std::shared_ptr<const BaseStar> s1
std::shared_ptr<const BaseStar> s2
double distance
double chi2

Friends

std::ostream &operator<<(std::ostream &stream, const StarMatch &Match)