lsst.jointcal
14.0-17-ge3cc87b+10
|
#include <StarMatch.h>
Public Member Functions | |
void | refineTransfo (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 | applyTransfo (StarMatchList &transformed, const Gtransfo *priorTransfo, const Gtransfo *posteriorTransfo=nullptr) const |
enables to get a transformed StarMatchList. More... | |
StarMatchList () | |
std::shared_ptr< const Gtransfo > | getTransfo () const |
carries out a fit with outlier rejection More... | |
double | getDist2 () const |
access to the sum of squared residuals of the last call to refineTransfo. More... | |
double | getChi2 () const |
access to the chi2 of the last call to refineTransfo. More... | |
int | getTransfoOrder () const |
returns the order of the used transfo 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 refineTransfo) More... | |
unsigned | removeAmbiguities (const Gtransfo >ransfo, int which=3) |
cleans up the std::list of pairs for pairs that share one of their stars, keeping the closest one. More... | |
void | setTransfo (const Gtransfo *gtransfo) |
sets a transfo between the 2 std::lists and deletes the previous or default one. No fit. More... | |
void | setTransfo (const Gtransfo >ransfo) |
void | setTransfo (std::shared_ptr< Gtransfo > gtransfo) |
void | setTransfoOrder (int order) |
set transfo according to the given order. More... | |
std::unique_ptr< Gtransfo > | inverseTransfo () |
returns the inverse transfo (swap, fit(refineTransfo) , and swap). More... | |
void | setDistance (const Gtransfo >ransfo) |
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 | dumpTransfo (std::ostream &stream=std::cout) const |
print the matching transformation quality (transfo, 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 126 of file StarMatch.h.
|
inline |
Definition at line 136 of file StarMatch.h.
|
inline |
Definition at line 188 of file StarMatch.h.
void lsst::jointcal::StarMatchList::applyTransfo | ( | StarMatchList & | transformed, |
const Gtransfo * | priorTransfo, | ||
const Gtransfo * | posteriorTransfo = nullptr |
||
) | const |
enables to get a transformed StarMatchList.
Only positions are transformed, not attached stars. const routine: "this" remains unchanged.
Definition at line 187 of file StarMatch.cc.
double lsst::jointcal::StarMatchList::computeResidual | ( | ) | const |
returns the average 1d Residual (last call to refineTransfo)
Definition at line 109 of file StarMatch.cc.
void lsst::jointcal::StarMatchList::cutTail | ( | int | nKeep | ) |
deletes the tail of the match std::list
Definition at line 164 of file StarMatch.cc.
void lsst::jointcal::StarMatchList::dumpTransfo | ( | std::ostream & | stream = std::cout | ) | const |
print the matching transformation quality (transfo, chi2, residual)
Definition at line 203 of file StarMatch.cc.
|
inline |
access to the chi2 of the last call to refineTransfo.
Definition at line 147 of file StarMatch.h.
|
inline |
access to the sum of squared residuals of the last call to refineTransfo.
Definition at line 144 of file StarMatch.h.
|
inline |
carries out a fit with outlier rejection
enables to access the fitted transformation.
Definition at line 141 of file StarMatch.h.
|
inline |
returns the order of the used transfo
Definition at line 150 of file StarMatch.h.
std::unique_ptr< Gtransfo > lsst::jointcal::StarMatchList::inverseTransfo | ( | ) |
returns the inverse transfo (swap, fit(refineTransfo) , and swap).
The caller should delete the returned pointer.
Definition at line 147 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 178 of file StarMatch.cc.
void lsst::jointcal::StarMatchList::refineTransfo | ( | 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 transfo is not assigned, it will be set to a GtransfoLinear. User can set an other type/degree using setTransfo() before call.
Definition at line 68 of file StarMatch.cc.
unsigned lsst::jointcal::StarMatchList::removeAmbiguities | ( | const Gtransfo & | gtransfo, |
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 gtransfo. which = 1 (2) removes ambiguities on the first (second) term of the match. which=3 does both.
Definition at line 118 of file StarMatch.cc.
void lsst::jointcal::StarMatchList::setDistance | ( | const Gtransfo & | gtransfo | ) |
Sets the distance (residual) field of all std::list elements. Mandatory before sorting on distances.
Definition at line 114 of file StarMatch.cc.
|
inline |
sets a transfo between the 2 std::lists and deletes the previous or default one. No fit.
Definition at line 164 of file StarMatch.h.
|
inline |
Definition at line 166 of file StarMatch.h.
|
inline |
Definition at line 167 of file StarMatch.h.
void lsst::jointcal::StarMatchList::setTransfoOrder | ( | int | order | ) |
set transfo according to the given order.
Definition at line 133 of file StarMatch.cc.
void lsst::jointcal::StarMatchList::swap | ( | ) |
swaps elements 1 and 2 of each starmatch in std::list.
Definition at line 172 of file StarMatch.cc.