Class StarMatchList¶
Defined in File StarMatch.h
Class Documentation¶
-
class
StarMatchList: public std::list<StarMatch> Public Functions
-
void
refineTransform(double nSigmas)¶
-
void
applyTransform(StarMatchList &transformed, const AstrometryTransform *priorTransform, const AstrometryTransform *posteriorTransform = nullptr) const¶ enables to get a transformed StarMatchList. Only positions are transformed, not attached stars. const routine: “this” remains unchanged.
-
StarMatchList()¶
-
std::shared_ptr<const AstrometryTransform>
getTransform() const¶ carries out a fit with outlier rejection
enables to access the fitted transformation.
-
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.
-
int
getTransformOrder() const¶ returns the order of the used transform
-
void
swap()¶ swaps elements 1 and 2 of each starmatch in std::list.
-
double
computeResidual() const¶ returns the average 1d Residual (last call to refineTransform)
-
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. The distance is computed using transform. which = 1 (2) removes ambiguities on the first (second) term of the match. which=3 does both.
-
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)¶
-
void
setTransformOrder(int order)¶ set transform according to the given order.
-
std::unique_ptr<AstrometryTransform>
inverseTransform()¶ returns the inverse transform (swap, fit(refineTransform) , and swap). The caller should delete the returned pointer.
-
void
setDistance(const AstrometryTransform &transform)¶ Sets the distance (residual) field of all std::list elements. Mandatory before sorting on distances.
-
void
cutTail(int nKeep)¶ deletes the tail of the match std::list
-
int
recoveredNumber(double mindist) const¶ count the number of elements for which distance is < mindist
-
void
dumpTransform(std::ostream &stream = std::cout) const¶ print the matching transformation quality (transform, chi2, residual)
-
~StarMatchList()¶
-
void