![]() |
FIMS
v0.8.1
|
The Rcpp interface for Dmultinom to instantiate from R: dmultinom_ <- methods::new(DmultinomDistribution). More...
#include <rcpp_distribution.hpp>
Public Member Functions | |
| DmultinomDistributionsInterface () | |
| The constructor. | |
| DmultinomDistributionsInterface (const DmultinomDistributionsInterface &other) | |
| Construct a new Dmultinom Distributions Interface object. | |
| virtual | ~DmultinomDistributionsInterface () |
| The destructor. | |
| virtual uint32_t | get_id () |
| Gets the ID of the interface base object. | |
| virtual bool | set_observed_data (int observed_data_id) |
| Set the unique ID for the observed data object. | |
| virtual bool | set_distribution_links (std::string input_type, Rcpp::IntegerVector ids) |
| Sets pointers for data observations, random effects, or priors. | |
| void | set_note (std::string note) |
| Set the note object. | |
| virtual double | evaluate () |
| void | finalize () |
| Extracts derived quantities back to the Rcpp interface object from the Information object. | |
| virtual std::string | to_json () |
| Converts the data to json representation for the output. | |
Public Member Functions inherited from DistributionsInterfaceBase | |
| DistributionsInterfaceBase () | |
| The constructor. | |
| DistributionsInterfaceBase (const DistributionsInterfaceBase &other) | |
| Construct a new Distributions Interface Base object. | |
| virtual | ~DistributionsInterfaceBase () |
| The destructor. | |
| virtual bool | set_distribution_mean (double input_value) |
| Set the expected mean value for the distribution. | |
Public Member Functions inherited from FIMSRcppInterfaceBase | |
| virtual bool | add_to_fims_tmb () |
| A virtual method to inherit to add objects to the TMB model. | |
| std::string | value_to_string (double value) |
| Report the parameter value as a string. | |
| std::string | make_dimensions (uint32_t start, uint32_t end, uint32_t rep=1) |
| Make a string of dimensions for the model. | |
Public Attributes | |
| ParameterVector | observed_values |
| Observed data, which should be a vector of length K of integers. | |
| ParameterVector | expected_values |
| The expected values, which should be a vector of length K where each value specifies the probability of class k. Note that, unlike in R, these probabilities must sum to 1.0. | |
| RealVector | dims |
| The dimensions of the number of rows and columns of the multivariate dataset. | |
| RealVector | lpdf_vec |
| Vector that records the individual log probability function for each observation. | |
| SharedString | notes |
| TODO: document this. | |
Public Attributes inherited from DistributionsInterfaceBase | |
| uint32_t | id_m |
| The local ID of the DistributionsInterfaceBase object. | |
| std::shared_ptr< std::vector< uint32_t > > | key_m |
| The unique ID for the variable map that points to a fims::Vector. | |
| SharedString | input_type_m |
| The type of density input. The options are prior, re, or data. | |
| SharedString | use_mean_m = fims::to_string("no") |
| Control flag indicating whether to use the expected mean in the distribution calculations. | |
| SharedInt | interface_observed_data_id_m = -999 |
| The ID of the observed data object, which is set to -999. | |
| double | lpdf_value = 0 |
| The log probability density function value. | |
Public Attributes inherited from FIMSRcppInterfaceBase | |
| bool | finalized = false |
| Is the object already finalized? The default is false. | |
Additional Inherited Members | |
Static Public Attributes inherited from DistributionsInterfaceBase | |
| static uint32_t | id_g = 1 |
| The static ID of the DistributionsInterfaceBase object. | |
| static std::map< uint32_t, std::shared_ptr< DistributionsInterfaceBase > > | live_objects |
| The map associating the ID of the DistributionsInterfaceBase to the DistributionsInterfaceBase objects. This is a live object, which is an object that has been created and lives in memory. | |
Static Public Attributes inherited from FIMSRcppInterfaceBase | |
| static std::vector< std::shared_ptr< FIMSRcppInterfaceBase > > | fims_interface_objects |
| FIMS interface object vectors. | |
The Rcpp interface for Dmultinom to instantiate from R: dmultinom_ <- methods::new(DmultinomDistribution).
|
inline |
Construct a new Dmultinom Distributions Interface object.
| other |
Implements DistributionsInterfaceBase.
|
inlinevirtual |
Extracts derived quantities back to the Rcpp interface object from the Information object.
Reimplemented from FIMSRcppInterfaceBase.
|
inlinevirtual |
Sets pointers for data observations, random effects, or priors.
| input_type | String that sets whether the distribution type is for priors, random effects, or data. |
| ids | Vector of unique ids for each linked parameter(s), derived value(s), or observed data vector. |
Reimplemented from DistributionsInterfaceBase.
|
inline |
Set the note object.
| note |
|
inlinevirtual |
Set the unique ID for the observed data object.
| observed_data_id | Unique ID for the observed data object. |
Reimplemented from DistributionsInterfaceBase.
|
inlinevirtual |
Converts the data to json representation for the output.
Reimplemented from FIMSRcppInterfaceBase.
| RealVector DmultinomDistributionsInterface::lpdf_vec |
Vector that records the individual log probability function for each observation.
The vector