R/CONST.R

Defines functions get_upper_bound.hawkes_CONST get_lower_bound.hawkes_CONST generate_random_points.hawkes_CONST get_ampl_constraints.hawkes_CONST get_ampl_likelihood.hawkes_CONST get_param_names.hawkes_CONST

# this script implements methods for the background rate type: constant, i.e. a homogeneous poisson

get_param_names.hawkes_CONST <- function(model) {
  'lambda'
}

get_ampl_likelihood.hawkes_CONST <- function(model) {
  stop('Not implemented yet!')
}

get_ampl_constraints.hawkes_CONST <- function(model) {
  ''
}

generate_random_points.hawkes_CONST <- function(model) {
  data.frame(lambda = c(stats::runif(8, min = .Machine$double.eps, max = 300),
                        NA, Inf))
}

get_lower_bound.hawkes_CONST <- function(model) {
  c(lambda = 1e-100)
}

get_upper_bound.hawkes_CONST <- function(model) {
  c(lambda = 1e6)
}
behavioral-ds/evently documentation built on Feb. 3, 2023, 9:42 a.m.