primarycensored
Loading...
Searching...
No Matches
Log PDFs of the primary distribution

Helper function to compute the log PDF of the primary distribution. More...

Collaboration diagram for Log PDFs of the primary distribution:

Functions

real primary_lpdf (real x, int primary_id, array[] real params, real xmin, real xmax)
 

Description

Helper function to compute the log PDF of the primary distribution.

Function Documentation

◆ primary_lpdf()

real primary_lpdf ( real x,
int primary_id,
array[]real params,
real xmin,
real xmax )

Compute the log PDF of the primary distribution

Parameters
xValue
primary_idPrimary distribution identifier
paramsDistribution parameters
xminMinimum value
xmaxMaximum value
Returns
Log PDF of the primary distribution
// Example: Uniform distribution
real x = 0.5;
int primary_id = 1; // Uniform
array[0] real params = {}; // No additional parameters for uniform
real xmin = 0;
real xmax = 1;
real log_pdf = primary_lpdf(x, primary_id, params, xmin, xmax);
real primary_lpdf(real x, int primary_id, array[] real params, real xmin, real xmax)

Definition at line 70 of file primarycensored_ode.stan.

Here is the call graph for this function:
Here is the caller graph for this function: