paulnorthrop / lax
Showing 2 of 3 files from the diff.
Other files ignored by Codecov

@@ -282,8 +282,8 @@
Loading
282 282
  # For a stationary model, and if a valid k has been supplied, then calculate
283 283
  # the K-gaps model log-likelihood
284 284
  if (!x$trans && !missing(k) && length(k) == 1) {
285 -
    if (!is.wholenumber(k) || k < 0) {
286 -
      stop("k must be a positive integer")
285 +
    if (!is.numeric(k) || k < 0 || length(k) != 1) {
286 +
      stop("k must be a non-negative scalar")
287 287
    }
288 288
    # Call exdex::kgaps() to estimate the extremal index theta and store values
289 289
    # from which the log-likelihood can be calculated

@@ -495,14 +495,6 @@
Loading
495 495
  c(la, sc, xi)
496 496
}
497 497
498 -
# ======================== Check for an integer number ====================== #
499 -
500 -
#' @keywords internal
501 -
#' @rdname lax-internal
502 -
is.wholenumber <-  function(x, tol = .Machine$double.eps^0.5) {
503 -
  return(abs(x - round(x)) < tol)
504 -
}
505 -
506 498
# =============================== kgaps_loglik ============================== #
507 499
# Included because this is not exported from exdex
508 500
# The argument n_kgaps is not used here but it is included because it is
Files Coverage
R 79.38%
Project Totals (46 files) 79.38%
89tc49qlswsfjwam

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading