change_height: RJMCMC: Change height.

Description Usage Arguments Value

View source: R/PWC.R

Description

RJMCMC: Change height.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
change_height(
  partition,
  heights,
  d.spikes,
  hyper.param,
  kappa,
  mu,
  kappa0,
  T.min = NULL,
  max.T.min = NA,
  ISI.type = "Gamma",
  do.log,
  which.heights = "independent"
)

Arguments

partition

Partition of time experiment time. A vector of K values where the first entry is 0 and the last is the end of experiment time.

heights

Vector of (K-1) heights corresponding to the partition.

d.spikes

Data frame containing spike sequences.

hyper.param

ISI parameter.

kappa

parameter of priors height

mu

parameter of priors height

kappa0

parameter of priors height

T.min

Refractory period.

max.T.min

Maximal allowed T.min values from d.spikes.

ISI.type

The ISI distribution.

do.log

Flag, where if do.log is true the calculations are computed on the log scale.

which.heights

Method for prior distribution of heights, either 'independent' or 'martingale'.

Value

New partition and heights


JPNotts/Package documentation built on Oct. 5, 2021, 2:04 p.m.