LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
25 #ifndef LSST_JOINTCAL_STAR_MATCH_H
26 #define LSST_JOINTCAL_STAR_MATCH_H
231 #endif // LSST_JOINTCAL_STAR_MATCH_H
StarMatch(const FatPoint &point1, const FatPoint &point2, std::shared_ptr< const BaseStar > star1, std::shared_ptr< const BaseStar > star2)
constructor.
void setDistance(const AstrometryTransform &transform)
to be used before sorting on distances.
unsigned removeAmbiguities(const AstrometryTransform &transform, int which=3)
cleans up the std::list of pairs for pairs that share one of their stars, keeping the closest one.
friend bool sameStar1(const StarMatch &one, const StarMatch &two)
void setTransform(std::shared_ptr< AstrometryTransform > transform)
std::shared_ptr< const AstrometryTransform > getTransform() const
carries out a fit with outlier rejection
double computeChi2(const StarMatchList &L, const AstrometryTransform &transform)
the actual chi2
friend bool compareStar2(const StarMatch &one, const StarMatch &two)
int recoveredNumber(double mindist) const
count the number of elements for which distance is < mindist
void printTransform(std::ostream &stream=std::cout) const
print the matching transformation quality (transform, chi2, residual)
double computeChi2(const AstrometryTransform &transform) const
returns the chi2 (using errors in the FatPoint's)
::std::list< StarMatch >::iterator StarMatchIterator
double computeResidual() const
returns the average 1d Residual (last call to refineTransform)
std::shared_ptr< const BaseStar > s1
void setTransform(const AstrometryTransform &transform)
void cutTail(int nKeep)
deletes the tail of the match std::list
double getDistance() const
returns the value computed by the above one.
void swap()
swaps elements 1 and 2 of each starmatch in std::list.
bool compareStar2(const StarMatch &one, const StarMatch &two)
void setDistance(const AstrometryTransform &transform)
Sets the distance (residual) field of all std::list elements. Mandatory before sorting on distances.
void applyTransform(StarMatchList &transformed, const AstrometryTransform *priorTransform, const AstrometryTransform *posteriorTransform=nullptr) const
enables to get a transformed StarMatchList.
void setTransform(const AstrometryTransform *transform)
sets a transform between the 2 std::lists and deletes the previous or default one....
double computeDistance(const AstrometryTransform &transform) const
returns the distance from transform(point1) to point2.
std::ostream & operator<<(std::ostream &stream, AstrometryMapping const &mapping)
ItemVariant const * other
std::shared_ptr< const BaseStar > s2
void setTransformOrder(int order)
set transform according to the given order.
double getDist2() const
access to the sum of squared residuals of the last call to refineTransform.
double Distance(const Point &other) const
A Point with uncertainties.
A base class for image defects.
friend std::ostream & operator<<(std::ostream &stream, const StarMatch &Match)
bool compareStar1(const StarMatch &one, const StarMatch &two)
int getTransformOrder() const
returns the order of the used transform
bool sameStar2(const StarMatch &one, const StarMatch &two)
friend bool compareStar1(const StarMatch &one, const StarMatch &two)
friend bool sameStar2(const StarMatch &one, const StarMatch &two)
::std::list< StarMatch >::const_iterator StarMatchCIterator
void refineTransform(double nSigmas)
removes pairs beyond nSigmas in distance (where the sigma scale is set by the fit) and iterates until...
double getChi2() const
access to the chi2 of the last call to refineTransform.
std::unique_ptr< AstrometryTransform > inverseTransform()
returns the inverse transform (swap, fit(refineTransform) , and swap).
double computeDist2(const StarMatchList &S, const AstrometryTransform &transform)
sum of distance squared
bool sameStar1(const StarMatch &one, const StarMatch &two)
A hanger for star associations.