Description Usage Arguments Details Value See Also
Runs sequential importance sampling without resampling on a given Non-Linear State Space models with user-specified kernel as proposal.
1 2 3 4 | siskernel(nlss, y, N, proposal.rnd = prior.rnd,
proposal.logpdf = prior.logpdf,
initial.proposal.rnd = initial.rnd,
initial.proposal.logpdf = initial.logpdf)
|
nlss |
Non-linear state space model |
y |
Sequence of observations. Its length T is the number of timesteps. |
N |
Number of particles |
proposal.rnd |
Function sampling from the proposal kernel to use |
proposal.logpdf |
Function computing the log-pdf of the proposal kernel |
initial.proposal.rnd |
Function sampling from the proposal kernel to use at initial timestep |
initial.proposal.logpdf |
Function computing the log-pdf of the proposal kernel at initial timestep |
This algorithm is a slightly more generic version of
sis
. It is not recommended and included for
illustrative purposes only. This version is therefore a
minimalistic and only supports NLLS with univariate
states. Use sisr
instead.
A list with the following components:
particles |
Array (T, N, D) of the sampled particles |
logweights |
Array (T, N) of the logarithm of the non-normalized importance weights of the particles |
weights |
Array (T, N) of the normalized importance weights of the particles |
t |
Indices 1 to T, included for ease of plotting |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.