#include <aggregates.h>
|
| 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 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.
◆ CovarianceKeyArray
◆ ErrKeyArray
◆ NameArray
◆ Value
The data type for get and set.
Definition at line 77 of file FunctorKey.h.
◆ CoordErrKey() [1/3]
lsst::afw::table::CoordErrKey::CoordErrKey |
( |
| ) |
|
◆ CoordErrKey() [2/3]
◆ CoordErrKey() [3/3]
◆ addFields() [1/4]
◆ addFields() [2/4]
◆ addFields() [3/4]
Add covariance matrix fields to a Schema, and return a CovarianceMatrixKey to manage them.
- Parameters
-
[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.
◆ addFields() [4/4]
Add covariance matrix fields to a Schema, and return a CovarianceMatrixKey to manage them.
- Parameters
-
[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.
◆ get()
◆ getElement()
Return the element in row i and column j.
Definition at line 608 of file aggregates.cc.
◆ hash_value()
◆ isValid()
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.
◆ operator!=()
◆ operator==()
◆ set() [1/2]
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.
◆ set() [2/2]
◆ setElement()
Set the element in row i and column j.
Definition at line 611 of file aggregates.cc.
The documentation for this class was generated from the following file: