LSST Applications 24.1.6,g063fba187b+56b85ce14a,g0f08755f38+df8a265115,g12f32b3c4e+891a09f10d,g1524ad2192+7a5d7b3fbd,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g28da252d5a+07cb1400be,g2bbee38e9b+ae03bbfc84,g2bc492864f+ae03bbfc84,g3156d2b45e+6e55a43351,g347aa1857d+ae03bbfc84,g35bb328faa+a8ce1bb630,g3a166c0a6a+ae03bbfc84,g3e281a1b8c+c5dd892a6c,g414038480c+6b9177ef31,g41af890bb2+8f257c4c0b,g781aacb6e4+a8ce1bb630,g7af13505b9+7137b3b17d,g80478fca09+6df6903293,g82479be7b0+091ce1d07f,g858d7b2824+df8a265115,g89c8672015+f4add4ffd5,g9125e01d80+a8ce1bb630,g9726552aa6+414189b318,ga5288a1d22+4a2bca08d7,gacef1a1666+c9a8ff65f4,gb58c049af0+d64f4d3760,gbcfae0f0a0+de1d42d831,gc28159a63d+ae03bbfc84,gcf0d15dbbd+72117bf34e,gda6a2b7d83+72117bf34e,gdaeeff99f8+1711a396fd,ge500cccec5+c8c9c9af63,ge79ae78c31+ae03bbfc84,gf0baf85859+c1f95f4921,gfa517265be+df8a265115,gfa999e8aa5+17cd334064,gfb92a5be7c+df8a265115
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. | |
void | applyTransform (StarMatchList &transformed, const AstrometryTransform *priorTransform, const AstrometryTransform *posteriorTransform=nullptr) const |
enables to get a transformed StarMatchList. | |
StarMatchList () | |
std::shared_ptr< const AstrometryTransform > | getTransform () const |
carries out a fit with outlier rejection | |
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. | |
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 | setTransform (std::shared_ptr< 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). | |
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 | printTransform (std::ostream &stream=std::cout) const |
print the matching transformation quality (transform, chi2, residual) | |
~StarMatchList ()=default | |
StarMatchList (const StarMatchList &)=delete | |
void | operator= (const StarMatchList &)=delete |
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. | |
Definition at line 150 of file StarMatch.h.
|
inline |
Definition at line 160 of file StarMatch.h.
|
default |
|
delete |
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 212 of file StarMatch.cc.
double lsst::jointcal::StarMatchList::computeResidual | ( | ) | const |
returns the average 1d Residual (last call to refineTransform)
Definition at line 134 of file StarMatch.cc.
void lsst::jointcal::StarMatchList::cutTail | ( | int | nKeep | ) |
deletes the tail of the match std::list
Definition at line 189 of file StarMatch.cc.
|
inline |
access to the chi2 of the last call to refineTransform.
Definition at line 171 of file StarMatch.h.
|
inline |
access to the sum of squared residuals of the last call to refineTransform.
Definition at line 168 of file StarMatch.h.
|
inline |
carries out a fit with outlier rejection
enables to access the fitted transformation.
Definition at line 165 of file StarMatch.h.
|
inline |
returns the order of the used transform
Definition at line 174 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 172 of file StarMatch.cc.
|
delete |
void lsst::jointcal::StarMatchList::printTransform | ( | std::ostream & | stream = std::cout | ) | const |
print the matching transformation quality (transform, chi2, residual)
Definition at line 228 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 203 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 92 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 143 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 139 of file StarMatch.cc.
|
inline |
Definition at line 190 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 188 of file StarMatch.h.
|
inline |
Definition at line 191 of file StarMatch.h.
void lsst::jointcal::StarMatchList::setTransformOrder | ( | int | order | ) |
set transform according to the given order.
Definition at line 158 of file StarMatch.cc.
void lsst::jointcal::StarMatchList::swap | ( | ) |
swaps elements 1 and 2 of each starmatch in std::list.
Definition at line 197 of file StarMatch.cc.