ARTS
2.3.1285(git:92a29ea9-dirty)
|
Functions | |
void | avg (VectorView y, const ArrayOfVector &ys, const Index start=0, const Index end=-1) |
Compute the average of the ranged ys. More... | |
void | std (VectorView std, const Vector &y, const ArrayOfVector &ys, const Index start=0, const Index end=-1) |
Compute the standard deviation of the ranged ys. More... | |
void | var (VectorView var, const Vector &y, const ArrayOfVector &ys, const Index start=0, const Index end=-1) |
Compute the variance of the ranged ys. More... | |
void | cov (MatrixView cov, const Vector &y, const ArrayOfVector &ys, const Index start=0, const Index end=-1) |
Compute the covariance matrix of the ranged ys. More... | |
Numeric | median (const ConstVectorView v, const ArrayOfIndex &pos=ArrayOfIndex{}) |
Get the median of the vector in the range. More... | |
void linalg::avg | ( | VectorView | y, |
const ArrayOfVector & | ys, | ||
const Index | start = 0 , |
||
const Index | end = -1 |
||
) |
Compute the average of the ranged ys.
The range of ys is [start, end) if end is positive or [start, ys.nelem()+end] otherwise
[in,out] | y | N-dimensional Vector; Averages of y in given range |
[in] | ys | list of N-dimensional Vector(s) to average |
[in] | start | First index in ys |
[in] | end | Past last index representation |
Definition at line 32 of file raw.cc.
References Zeeman::end(), and Array< base >::nelem().
void linalg::cov | ( | MatrixView | cov, |
const Vector & | y, | ||
const ArrayOfVector & | ys, | ||
const Index | start = 0 , |
||
const Index | end = -1 |
||
) |
Compute the covariance matrix of the ranged ys.
The range of ys is [start, end) if end is positive or [start, ys.nelem()+end] otherwise
[in,out] | cov | N-by-N-dimensional Matrix; Covariance matrix |
[in] | y | Averages of y in given range |
[in] | ys | list of N-dimensional Vector(s) to average |
[in] | start | First index in ys |
[in] | end | Past last index representation |
Definition at line 72 of file raw.cc.
References Zeeman::end(), and Array< base >::nelem().
Numeric linalg::median | ( | const ConstVectorView | v, |
const ArrayOfIndex & | pos = ArrayOfIndex{} |
||
) |
Get the median of the vector in the range.
If pos is empty, use all numbers
[in] | v | A Vector of any length |
[in] | pos | Positions to use in the vector |
Definition at line 90 of file raw.cc.
References i, n, Array< base >::nelem(), and ConstVectorView::nelem().
Referenced by ybatchTroposphericCorrectionNaiveMedianForward().
void linalg::std | ( | VectorView | std, |
const Vector & | y, | ||
const ArrayOfVector & | ys, | ||
const Index | start = 0 , |
||
const Index | end = -1 |
||
) |
Compute the standard deviation of the ranged ys.
The range of ys is [start, end) if end is positive or [start, ys.nelem()+end] otherwise
[in,out] | std | N-dimensional Vector; Standard deviations |
[in] | y | Averages of y in given range |
[in] | ys | list of N-dimensional Vector(s) to average |
[in] | start | First index in ys |
[in] | end | Past last index representation |
Definition at line 66 of file raw.cc.
References VectorView::begin(), VectorView::end(), sqrt(), transform(), and var().
void linalg::var | ( | VectorView | var, |
const Vector & | y, | ||
const ArrayOfVector & | ys, | ||
const Index | start = 0 , |
||
const Index | end = -1 |
||
) |
Compute the variance of the ranged ys.
The range of ys is [start, end) if end is positive or [start, ys.nelem()+end] otherwise
[in,out] | var | N-dimensional Vector; Variance |
[in] | y | Averages of y in given range |
[in] | ys | list of N-dimensional Vector(s) to average |
[in] | start | First index in ys |
[in] | end | Past last index representation |
Definition at line 49 of file raw.cc.
References Zeeman::end(), and Array< base >::nelem().
Referenced by abs_linesChangeLineShapeModelParameterForMatchingLines(), abs_linesSetLineShapeModelParameterForMatchingLines(), bad_propmat(), LineShape::SingleSpeciesModel::compute(), LineShape::SingleSpeciesModel::compute_dT(), LineShape::SingleSpeciesModel::compute_dT0(), LineShape::SingleSpeciesModel::compute_dX0(), LineShape::SingleSpeciesModel::compute_dX1(), LineShape::SingleSpeciesModel::compute_dX2(), LineShape::SingleSpeciesModel::compute_dX3(), LineShape::Model::Data(), LineShape::SingleSpeciesModel::Get(), LineShape::MetaData2ModelShape(), LineShape::ModelShape2MetaData(), LineShape::SingleSpeciesModel::Set(), Agenda::set_methods(), LineShape::SingleSpeciesModel::special_linemixing_aer(), LineShape::SingleSpeciesModel::special_linemixing_aer_dT(), split_quantum_numbers_from_hitran_online(), and std().