The Rcpp interface for Dnorm to instantiate from R: dnorm_ <- methods::new(DnormDistribution).
More...
|
|
ParameterVector | x |
| | Observed data.
|
| |
|
ParameterVector | expected_values |
| | The expected values, which would be the mean of x for this distribution.
|
| |
|
ParameterVector | expected_mean |
| | The expected mean, which would be the mean of x for this distribution.
|
| |
|
ParameterVector | log_sd |
| | The uncertainty, which would be the standard deviation of x for the normal distribution.
|
| |
| RealVector | lpdf_vec |
| | Vector that records the individual log probability function for each observation.
|
| |
|
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.
|
| |
|
bool | finalized = false |
| | Is the object already finalized? The default is false.
|
| |
The Rcpp interface for Dnorm to instantiate from R: dnorm_ <- methods::new(DnormDistribution).
| virtual bool DnormDistributionsInterface::set_distribution_mean |
( |
double |
input_value | ) |
|
|
inlinevirtual |
Set the expected mean value for the distribution.
This virtual function provides an interface for setting a fixed mean value for distribution objects. When overridden in derived classes, this method typically stores the provided mean value as a fixed effect parameter and marks the distribution to use the mean in its calculations.
The base class implementation returns false to indicate the operation is not supported. Derived classes that support mean specification should override this method to implement the actual functionality.
- Parameters
-
| input_value | The numeric value to set as the distribution's expected mean. This value will be treated as a fixed effect parameter (not estimated) in derived class implementations. |
- Returns
- bool Returns true if the mean was successfully set, false otherwise. The base class implementation always returns false to indicate the operation is not supported by default.
- See also
- DnormDistributionsInterface::set_distribution_mean for an example implementation that sets the mean as a fixed effect parameter.
Reimplemented from DistributionsInterfaceBase.