weight: Weight of a Trajectory

Description Usage Arguments Value Examples

View source: R/removal_tree_sampling_aux.R

Description

Computes the log probability density of the sampling times given the trajectory.

Usage

1
weight(traj, sampling_times, psi)

Arguments

traj

object of class trajectory

sampling_times

vector containing the sampling times (s_j)_{j=1...k} in increasing order

psi

sampling rate

Value

a number

Examples

1
2
weight(traj=list('t'=c(0,0.5,1,2), 'N'=c(1,2,1,1), 'removed'=c(1)),
sampling_times=c(1,2), psi=0.3)

JasmineGamblin/bdTreeSim documentation built on Nov. 11, 2019, 6:28 a.m.