An Rcpp interface class that defines the ParameterVector class.
More...
#include <rcpp_interface_base.hpp>
An Rcpp interface class that defines the ParameterVector class.
An Rcpp interface class that defines the interface between R and C++ for a parameter vector type.
◆ ParameterVector() [1/2]
| ParameterVector::ParameterVector |
( |
Rcpp::NumericVector |
x, |
|
|
size_t |
size |
|
) |
| |
|
inline |
The constructor for initializing a parameter vector.
- Parameters
-
| x | A numeric vector. |
| size | The number of elements to copy over. |
◆ ParameterVector() [2/2]
The constructor for initializing a parameter vector.
- Parameters
-
◆ at()
The accessor where the first index starts at one. This function is for calling accessing from R.
- Parameters
-
◆ fill()
Sets the value of all Parameters in the ParameterVector to the provided value.
- Parameters
-
| value | A double specifying the value to set all Parameters to within the ParameterVector. |
◆ fill_max()
Assigns the given values to the maximum value of all elements in the vector.
- Parameters
-
| value | The value to be assigned. |
◆ fill_min()
Assigns the given values to the minimum value of all elements in the vector.
- Parameters
-
| value | The value to be assigned. |
◆ get()
An internal accessor for calling a position of a ParameterVector from R.
- Parameters
-
| pos | An integer specifying the position of the ParameterVector you want returned. The first position is one and the last position is the same as the size of the ParameterVector. |
◆ operator[]()
The accessor where the first index starts is zero.
- Parameters
-
◆ resize()
◆ set()
An internal setter for setting a position of a ParameterVector from R.
- Parameters
-
| pos | An integer specifying the position of the ParameterVector you want to set. The first position is one and the last position is the same as the size of the ParameterVector. |
| p | A numeric value specifying the value to set position pos to in the ParameterVector. |
◆ set_all_estimable()
| void ParameterVector::set_all_estimable |
( |
bool |
estimable | ) |
|
|
inline |
Sets all Parameters within a ParameterVector as estimable.
- Parameters
-
| estimable | A boolean specifying if all Parameters within the ParameterVector should be estimated within the model. A value of true leads to all Parameters being estimated. |
◆ set_all_random()
| void ParameterVector::set_all_random |
( |
bool |
random | ) |
|
|
inline |
Sets all Parameters within a ParameterVector as random effects.
- Parameters
-
| random | A boolean specifying if all Parameters within the ParameterVector should be designated as random effects. A value of true leads to all Parameters being random effects. |
The documentation for this class was generated from the following file: