tnagler / VC2copula

Compare 9572ec8 ... +1 ... bdd7c1b

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 2 of 84 files from the diff.
Newly tracked file
src/Tawn2.c created.
Other files ignored by Codecov
docs/LICENSE.html has changed.
docs/index.html has changed.
docs/pkgdown.css has changed.
docs/pkgdown.yml has changed.
docs/404.html has changed.
docs/authors.html has changed.
NAMESPACE has changed.
docs/pkgdown.js has changed.
README.md has changed.
DESCRIPTION has changed.
NEWS.md has changed.
cran-comments.md has changed.

@@ -127,7 +127,7 @@
Loading
127 127
  .C("Tawn2", as.double(w), as.integer(length(w)),
128 128
     as.double(copula@parameters[1]), as.double(copula@parameters[2]),
129 129
     as.double(1), as.double(rep(0, length(w))),
130 -
     PACKAGE = "VineCopula"
130 +
     PACKAGE = "VC2copula"
131 131
  )[[6]]
132 132
})
133 133
@@ -139,7 +139,7 @@
Loading
139 139
  surA <- .C("Tawn2", as.double(log(v) / log(u * v)), as.integer(length(w)),
140 140
             as.double(copula@parameters[1]), as.double(copula@parameters[2]),
141 141
             as.double(1), as.double(rep(0, length(w))),
142 -
             PACKAGE = "VineCopula"
142 +
             PACKAGE = "VC2copula"
143 143
  )[[6]]
144 144
  -log(1 - u + 1 - v - 1 + (u * v)^surA)
145 145
})

@@ -0,0 +1,25 @@
Loading
1 +
#define R_NO_REMAP
2 +
#include <R_ext/Rdynload.h>
3 +
#include <R.h>
4 +
#include <Rinternals.h>
5 +
6 +
#include <VineCopula/evCopula.h>
7 +
8 +
9 +
extern void Tawn2(double* t, int* n, double* par, double* par2, double* par3, double* out) {
10 +
  static SEXP(*fun)(double*, int*, double*, double*, double*, double*) = NULL;
11 +
  if (fun == NULL)
12 +
    fun = (SEXP(*)(double*, int*, double*, double*, double*, double*)) R_GetCCallable("VineCopula", "Tawn2");
13 +
  fun(t, n, par, par2, par3, out);
14 +
}
15 +
16 +
static const R_CMethodDef CEntries[] = {
17 +
  {"Tawn2", (DL_FUNC) &Tawn2, 6},
18 +
  {NULL, NULL, 0}
19 +
};
20 +
21 +
void R_init_VC2copula(DllInfo *dll)
22 +
{
23 +
  R_registerRoutines(dll, CEntries, NULL, NULL, NULL);
24 +
  R_useDynamicSymbols(dll, FALSE);
25 +
}

Learn more Showing 1 files with coverage changes found.

New file src/Tawn2.c
New
Loading file...
Files Coverage
R 94.51%
src/Tawn2.c 100.00%
Project Totals (12 files) 94.59%
Loading