25 #ifndef LSST_JOINTCAL_STAR_MATCH_H 26 #define LSST_JOINTCAL_STAR_MATCH_H 71 : point1(point1), point2(point2), s1(
std::
move(star1)), s2(
std::
move(star2)), distance(0.){};
106 bool operator==(
const StarMatch &
other)
const {
return (s1 == other.
s1 && s2 == other.
s2); };
107 bool operator!=(
const StarMatch &other)
const {
return (s1 != other.
s1 || s2 != other.
s2); };
151 void refineTransform(
double nSigmas);
179 double computeResidual()
const;
193 void setTransformOrder(
int order);
203 void cutTail(
int nKeep);
206 int recoveredNumber(
double mindist)
const;
231 #endif // LSST_JOINTCAL_STAR_MATCH_H
A hanger for star associations.
void setTransform(std::shared_ptr< AstrometryTransform > transform)
friend class StarMatchList
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 Distance(const Point &other) const
A Point with uncertainties.
double getDist2() const
access to the sum of squared residuals of the last call to refineTransform.
double getChi2() const
access to the chi2 of the last call to refineTransform.
A base class for image defects.
::std::list< StarMatch >::const_iterator StarMatchCIterator
friend bool sameStar2(const StarMatch &one, const StarMatch &two)
StarMatch(const FatPoint &point1, const FatPoint &point2, std::shared_ptr< const BaseStar > star1, std::shared_ptr< const BaseStar > star2)
constructor.
friend bool sameStar1(const StarMatch &one, const StarMatch &two)
void setTransform(const AstrometryTransform *transform)
sets a transform between the 2 std::lists and deletes the previous or default one. No fit.
void setTransform(const AstrometryTransform &transform)
::std::list< StarMatch >::iterator StarMatchIterator
friend bool compareStar2(const StarMatch &one, const StarMatch &two)
double computeDistance(const AstrometryTransform &transform) const
returns the distance from transform(point1) to point2.
std::shared_ptr< const AstrometryTransform > getTransform() const
carries out a fit with outlier rejection
double computeDist2(const StarMatchList &S, const AstrometryTransform &transform)
sum of distance squared
friend std::ostream & operator<<(std::ostream &stream, const StarMatch &Match)
std::shared_ptr< const BaseStar > s2
std::shared_ptr< const BaseStar > s1
ItemVariant const * other
friend bool compareStar1(const StarMatch &one, const StarMatch &two)
int getTransformOrder() const
returns the order of the used transform
double getDistance() const
returns the value computed by the above one.