LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
#include <StarMatch.h>
Public Member Functions | |
void | refineTransform (double nSigmas) |
removes pairs beyond nSigmas in distance (where the sigma scale is set by the fit) and iterates until stabilization of the number of pairs. More... | |
void | applyTransform (StarMatchList &transformed, const AstrometryTransform *priorTransform, const AstrometryTransform *posteriorTransform=nullptr) const |
enables to get a transformed StarMatchList. More... | |
StarMatchList () | |
std::shared_ptr< const AstrometryTransform > | getTransform () const |
carries out a fit with outlier rejection More... | |
double | getDist2 () const |
access to the sum of squared residuals of the last call to refineTransform. More... | |
double | getChi2 () const |
access to the chi2 of the last call to refineTransform. More... | |
int | getTransformOrder () const |
returns the order of the used transform More... | |
void | swap () |
swaps elements 1 and 2 of each starmatch in std::list. More... | |
double | computeResidual () const |
returns the average 1d Residual (last call to refineTransform) More... | |
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. More... | |
void | setTransform (const AstrometryTransform *transform) |
sets a transform between the 2 std::lists and deletes the previous or default one. No fit. More... | |
void | setTransform (const AstrometryTransform &transform) |
void | setTransform (std::shared_ptr< AstrometryTransform > transform) |
void | setTransformOrder (int order) |
set transform according to the given order. More... | |
std::unique_ptr< AstrometryTransform > | inverseTransform () |
returns the inverse transform (swap, fit(refineTransform) , and swap). More... | |
void | setDistance (const AstrometryTransform &transform) |
Sets the distance (residual) field of all std::list elements. Mandatory before sorting on distances. More... | |
void | cutTail (int nKeep) |
deletes the tail of the match std::list More... | |
int | recoveredNumber (double mindist) const |
count the number of elements for which distance is < mindist More... | |
void | printTransform (std::ostream &stream=std::cout) const |
print the matching transformation quality (transform, chi2, residual) More... | |
~StarMatchList () | |
StarMatch | pop_front (StarMatch ... args) |
StarMatch | push_back (StarMatch ... args) |
StarMatch | splice (StarMatch ... args) |
StarMatch | crbegin (StarMatch ... args) |
StarMatch | erase (StarMatch ... args) |
StarMatch | emplace_front (StarMatch ... args) |
StarMatch | insert (StarMatch ... args) |
StarMatch | reverse (StarMatch ... args) |
StarMatch | back (StarMatch ... args) |
StarMatch | end (StarMatch ... args) |
StarMatch | remove (StarMatch ... args) |
StarMatch | emplace_back (StarMatch ... args) |
StarMatch | pop_back (StarMatch ... args) |
StarMatch | cbegin (StarMatch ... args) |
StarMatch | front (StarMatch ... args) |
StarMatch | unique (StarMatch ... args) |
StarMatch | size (StarMatch ... args) |
StarMatch | resize (StarMatch ... args) |
StarMatch | push_front (StarMatch ... args) |
StarMatch | rbegin (StarMatch ... args) |
StarMatch | crend (StarMatch ... args) |
StarMatch | assign (StarMatch ... args) |
StarMatch | sort (StarMatch ... args) |
StarMatch | merge (StarMatch ... args) |
StarMatch | empty (StarMatch ... args) |
StarMatch | remove_if (StarMatch ... args) |
StarMatch | cend (StarMatch ... args) |
StarMatch | swap (StarMatch ... args) |
StarMatch | max_size (StarMatch ... args) |
StarMatch | rend (StarMatch ... args) |
StarMatch | get_allocator (StarMatch ... args) |
StarMatch | clear (StarMatch ... args) |
StarMatch | emplace (StarMatch ... args) |
StarMatch | begin (StarMatch ... args) |
Public Attributes | |
StarMatch | elements |
STL member. More... | |
Definition at line 149 of file StarMatch.h.
|
inline |
Definition at line 159 of file StarMatch.h.
|
inline |
Definition at line 211 of file StarMatch.h.
void lsst::jointcal::StarMatchList::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.
Definition at line 214 of file StarMatch.cc.
double lsst::jointcal::StarMatchList::computeResidual | ( | ) | const |
returns the average 1d Residual (last call to refineTransform)
Definition at line 136 of file StarMatch.cc.
void lsst::jointcal::StarMatchList::cutTail | ( | int | nKeep | ) |
deletes the tail of the match std::list
Definition at line 191 of file StarMatch.cc.
|
inline |
access to the chi2 of the last call to refineTransform.
Definition at line 170 of file StarMatch.h.
|
inline |
access to the sum of squared residuals of the last call to refineTransform.
Definition at line 167 of file StarMatch.h.
|
inline |
carries out a fit with outlier rejection
enables to access the fitted transformation.
Definition at line 164 of file StarMatch.h.
|
inline |
returns the order of the used transform
Definition at line 173 of file StarMatch.h.
std::unique_ptr< AstrometryTransform > lsst::jointcal::StarMatchList::inverseTransform | ( | ) |
returns the inverse transform (swap, fit(refineTransform) , and swap).
The caller should delete the returned pointer.
Definition at line 174 of file StarMatch.cc.
void lsst::jointcal::StarMatchList::printTransform | ( | std::ostream & | stream = std::cout | ) | const |
print the matching transformation quality (transform, chi2, residual)
Definition at line 230 of file StarMatch.cc.
int lsst::jointcal::StarMatchList::recoveredNumber | ( | double | mindist | ) | const |
count the number of elements for which distance is < mindist
Definition at line 205 of file StarMatch.cc.
void lsst::jointcal::StarMatchList::refineTransform | ( | double | nSigmas | ) |
removes pairs beyond nSigmas in distance (where the sigma scale is set by the fit) and iterates until stabilization of the number of pairs.
If the transform is not assigned, it will be set to a AstrometryTransformLinearear. User can set an other type/order using setTransform() before call.
Definition at line 94 of file StarMatch.cc.
unsigned lsst::jointcal::StarMatchList::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.
Definition at line 145 of file StarMatch.cc.
void lsst::jointcal::StarMatchList::setDistance | ( | const AstrometryTransform & | transform | ) |
Sets the distance (residual) field of all std::list elements. Mandatory before sorting on distances.
Definition at line 141 of file StarMatch.cc.
|
inline |
Definition at line 189 of file StarMatch.h.
|
inline |
sets a transform between the 2 std::lists and deletes the previous or default one. No fit.
Definition at line 187 of file StarMatch.h.
|
inline |
Definition at line 190 of file StarMatch.h.
void lsst::jointcal::StarMatchList::setTransformOrder | ( | int | order | ) |
void lsst::jointcal::StarMatchList::swap | ( | ) |
swaps elements 1 and 2 of each starmatch in std::list.
Definition at line 199 of file StarMatch.cc.