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 min, real max)
 

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 min,
real max )

Compute the log PDF of the primary distribution

Parameters
xValue
primary_idPrimary distribution identifier
paramsDistribution parameters
minMinimum value
maxMaximum 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 min = 0;
real max = 1;
real log_pdf = primary_lpdf(x, primary_id, params, min, max);
real primary_lpdf(real x, int primary_id, array[] real params, real min, real max)

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: