| 90 | } |
| 91 | |
| 92 | Vector Data::getStdDevDiagonal() const |
| 93 | { |
| 94 | if (this->checkElement(DataElement::Covariance)) |
| 95 | { |
| 96 | return this->getCovarianceMatrix().diagonal().cwiseSqrt(); |
| 97 | } |
| 98 | else if (this->checkElement(DataElement::CovarianceDiagonal)) |
| 99 | { |
| 100 | return this->getCovarianceDiagonal().cwiseSqrt(); |
| 101 | } |
| 102 | else |
| 103 | { |
| 104 | PRINT_ERROR("Data has no covariance element!"); |
| 105 | return Vector(); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | double* Data::getMeanPointer() |
| 110 | { |
no test coverage detected