LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
|
#include <aggregates.h>
Public Types | |
using | ErrKeyArray = std::vector<Key<float>> |
using | CovarianceKeyArray = std::vector<Key<float>> |
using | NameArray = std::vector<std::string> |
using | Value = T |
The data type for get and set. | |
Public Member Functions | |
CoordErrKey () | |
CoordErrKey (ErrKeyArray const &err, CovarianceKeyArray const &cov=CovarianceKeyArray()) | |
CoordErrKey (SubSchema const &s, std::string const &name) | |
Eigen::Matrix< float, N, N > | get (BaseRecord const &record) const override |
Get a covariance matrix from the given record. | |
void | set (BaseRecord &record, Eigen::Matrix< float, N, N > const &value) const override |
Set a covariance matrix in the given record (uses only the lower triangle of the given matrix) | |
virtual void | set (BaseRecord &record, T const &value) const =0 |
float | getElement (BaseRecord const &record, int i, int j) const |
Return the element in row i and column j. | |
void | setElement (BaseRecord &record, int i, int j, float value) const |
Set the element in row i and column j. | |
bool | isValid () const noexcept |
Return True if all the constituent error Keys are valid. | |
bool | operator== (CovarianceMatrixKey const &other) const noexcept |
Compare the FunctorKey for equality with another, using its constituent Keys. | |
bool | operator!= (CovarianceMatrixKey const &other) const noexcept |
std::size_t | hash_value () const noexcept |
Return a hash of this object. | |
Static Public Member Functions | |
static CoordErrKey | addFields (Schema &schema, std::string const &name, std::string const &unit, bool diagonalOnly=false) |
static CoordErrKey | addFields (Schema &schema, std::string const &name, NameArray const &units, bool diagonalOnly=false) |
static CovarianceMatrixKey | addFields (Schema &schema, std::string const &prefix, NameArray const &names, std::string const &unit, bool diagonalOnly=false) |
Add covariance matrix fields to a Schema, and return a CovarianceMatrixKey to manage them. | |
static CovarianceMatrixKey | addFields (Schema &schema, std::string const &prefix, NameArray const &names, NameArray const &units, bool diagonalOnly=false) |
Add covariance matrix fields to a Schema, and return a CovarianceMatrixKey to manage them. | |
Definition at line 635 of file aggregates.h.
Definition at line 638 of file aggregates.h.
Definition at line 637 of file aggregates.h.
Definition at line 639 of file aggregates.h.
|
inherited |
The data type for get and set.
Definition at line 77 of file FunctorKey.h.
lsst::afw::table::CoordErrKey::CoordErrKey | ( | ) |
|
explicit |
lsst::afw::table::CoordErrKey::CoordErrKey | ( | SubSchema const & | s, |
std::string const & | name ) |
|
static |
|
static |
|
staticinherited |
Add covariance matrix fields to a Schema, and return a CovarianceMatrixKey to manage them.
[out] | schema | Schema to add fields to. |
[in] | prefix | String used to form the first part of all field names. Suffixes of the form '_xErr' and '_x_y_Cov' will be added to form the full field names (using names={'x', 'y'} as an example). |
[in] | units | Vector of units for for error (standard deviation) values; covariance matrix elements will have "{units[i]} {units[j]}" or "{units[i]}^2", depending on whether units[i] == units[j]. |
[in] | names | Vector of strings containing the names of the quantities the covariance matrix represents the uncertainty of. |
[in] | diagonalOnly | If true, only create fields for the error values. |
Definition at line 555 of file aggregates.cc.
|
staticinherited |
Add covariance matrix fields to a Schema, and return a CovarianceMatrixKey to manage them.
[out] | schema | Schema to add fields to. |
[in] | prefix | String used to form the first part of all field names. Suffixes of the form '_xErr' and '_x_y_Cov' will be added to form the full field names (using names={'x', 'y'} as an example). |
[in] | unit | Unit for for error (standard deviation) values; covariance matrix elements will be unit^2. |
[in] | names | Vector of strings containing the names of the quantities the covariance matrix represents the uncertainty of. |
[in] | diagonalOnly | If true, only create fields for the error values. |
Definition at line 538 of file aggregates.cc.
|
overridevirtualinherited |
Get a covariance matrix from the given record.
Implements lsst::afw::table::OutputFunctorKey< T >.
Definition at line 602 of file aggregates.cc.
|
inherited |
Return the element in row i and column j.
Definition at line 608 of file aggregates.cc.
|
noexceptinherited |
Return a hash of this object.
Definition at line 628 of file aggregates.cc.
|
noexceptinherited |
Return True if all the constituent error Keys are valid.
Note that if the only one or more off-diagonal keys are invalid, we assume that means those terms are zero, not that the whole FunctorKey is invalid.
Definition at line 619 of file aggregates.cc.
|
inlinenoexceptinherited |
Definition at line 624 of file aggregates.h.
|
noexceptinherited |
Compare the FunctorKey for equality with another, using its constituent Keys.
Definition at line 623 of file aggregates.cc.
|
overrideinherited |
Set a covariance matrix in the given record (uses only the lower triangle of the given matrix)
Definition at line 605 of file aggregates.cc.
|
pure virtualinherited |
|
inherited |
Set the element in row i and column j.
Definition at line 611 of file aggregates.cc.