Description Usage Arguments Value Author(s) See Also Examples
Convert time to sample number
1 2 |
time |
numeric: indices of the samples in recorded states |
thin |
integer scalar: thinning interval |
match |
mode of matching times between samples
|
index of the neares sample
Thomas Wutzler
iSample2time
getNGen.twDEMC
,subChains.twDEMC
,twDEMCBlockInt
1 2 3 4 5 6 7 | time = 0:20
structure( time2iSample(time), names=time)
structure( iSample2time(1:6, thin=4) , names=1:6 ) # to show the times corresponding to sample
structure( time2iSample(time,thin=4,match="floor"), names=time)
structure( time2iSample(time,thin=4,match="ceiling"), names=time)
structure( time2iSample(time,thin=4), names=time) # round may vary for times exactly between two samples
structure( time2iSample(time,thin=4,match="none"), names=time) # here we do not get indices
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.