TMB Documentation
v1.9.11
|
Utilities for OSA residuals. More...
#include <tmb_core.hpp>
Public Member Functions | |
data_indicator () | |
Default CTOR. | |
data_indicator (VT obs, bool init_one=false) | |
Construct from observation vector. More... | |
void | fill (vector< Type > p, SEXP ord_) |
Fill with parameter vector. | |
vector< int > | order () |
Get order in which the one step conditionals will be requested by oneStepPredict. | |
bool | osa_active () |
Are we inside a oneStepPredict calculation? | |
data_indicator | segment (int pos, int n) |
Extract segment of indicator vector or array. More... | |
Public Attributes | |
VT | cdf_lower |
Logarithm of lower CDF | |
VT | cdf_upper |
Logarithm of upper CDF | |
vector< int > | ord |
Subset argument (zero-based) passed from oneStepPredict. See data_indicator::order() . | |
bool | osa_flag |
Flag to tell if OSA calculation is active. See data_indicator::osa_active() . | |
Utilities for OSA residuals.
VT | Can be vector<Type> or array<Type> |
data_indicator
note that in general the subset is not applied to cdf_lower
and cdf_upper
. Definition at line 441 of file tmb_core.hpp.
|
inline |
Construct from observation vector.
obs | Observation vector or array |
init_one | If true the data_indicator will be filled with ones signifying that all observations should be enabled. |
Definition at line 456 of file tmb_core.hpp.
|
inline |
Extract segment of indicator vector or array.
cdf_lower
and cdf_upper
. Definition at line 478 of file tmb_core.hpp.