EricMarcon / entropart

@@ -8,9 +8,6 @@
Loading
8 8
PhyloBetaEntropy.ProbaVector <-
9 9
function(NorP, NorPexp = NULL, q = 1, Tree, Normalize = TRUE, ..., CheckArguments = TRUE, Ps = NULL, Pexp = NULL) 
10 10
{
11 -
  if (CheckArguments)
12 -
    CheckentropartArguments()
13 -
  
14 11
  if (missing(NorP)){
15 12
    if (!missing(Ps)) {
16 13
      NorP <- Ps
@@ -25,6 +22,9 @@
Loading
25 22
      stop("An argument NorPexp or Pexp must be provided.")
26 23
    }
27 24
  }
25 +
26 +
  if (CheckArguments)
27 +
    CheckentropartArguments()
28 28
  
29 29
  # Prepare NorP
30 30
  PandPexp <- matrix(c(NorP, NorPexp), nrow = length(NorP), ncol = 2, dimnames = list(names(NorP), c("Ps", "Pexp")))

@@ -8,9 +8,6 @@
Loading
8 8
Shannon.ProbaVector <-
9 9
function(NorP, ..., CheckArguments = TRUE, Ps = NULL) 
10 10
{
11 -
  if (CheckArguments)
12 -
    CheckentropartArguments()
13 -
14 11
  if (missing(NorP)){
15 12
    if (!missing(Ps)) {
16 13
      NorP <- Ps

@@ -8,9 +8,6 @@
Loading
8 8
TsallisBeta.ProbaVector <-
9 9
function(NorP, NorPexp = NULL, q = 1, ..., CheckArguments = TRUE, Ps = NULL, Pexp = NULL) 
10 10
{
11 -
  if (CheckArguments)
12 -
    CheckentropartArguments()
13 -
  
14 11
  if (missing(NorP)){
15 12
    if (!missing(Ps)) {
16 13
      NorP <- Ps
@@ -27,7 +24,10 @@
Loading
27 24
  }
28 25
  if (length(NorP) != length(NorPexp)) {
29 26
    stop("NorP and NorPexp should have the same length.")
30 -
  }  
27 +
  }
28 +
  
29 +
  if (CheckArguments)
30 +
    CheckentropartArguments()
31 31
  
32 32
  dataBeta <- NorP^q * lnq(NorP/NorPexp, q)
33 33
  dataBeta[NorP == 0] <- 0

@@ -8,9 +8,6 @@
Loading
8 8
SimpsonBeta.ProbaVector <-
9 9
function(NorP, NorPexp = NULL, ..., CheckArguments = TRUE, Ps = NULL, Pexp = NULL) 
10 10
{
11 -
  if (CheckArguments)
12 -
    CheckentropartArguments()
13 -
  
14 11
  if (missing(NorP)){
15 12
    if (!missing(Ps)) {
16 13
      NorP <- Ps

@@ -8,9 +8,6 @@
Loading
8 8
ShannonBeta.ProbaVector <-
9 9
function(NorP, NorPexp = NULL, ..., CheckArguments = TRUE, Ps = NULL, Pexp = NULL) 
10 10
{
11 -
  if (CheckArguments)
12 -
    CheckentropartArguments()
13 -
  
14 11
  if (missing(NorP)){
15 12
    if (!missing(Ps)) {
16 13
      NorP <- Ps

@@ -8,9 +8,6 @@
Loading
8 8
HqzBeta.ProbaVector <-
9 9
function(NorP, NorPexp = NULL, q = 1, Z = diag(length(NorP)), ..., CheckArguments = TRUE, Ps = NULL, Pexp = NULL) 
10 10
{
11 -
  if (CheckArguments)
12 -
    CheckentropartArguments()
13 -
  
14 11
  if (missing(NorP)){
15 12
    if (!missing(Ps)) {
16 13
      NorP <- Ps
@@ -26,6 +23,8 @@
Loading
26 23
    }
27 24
  }
28 25
  
26 +
  if (CheckArguments)
27 +
    CheckentropartArguments()
29 28
  
30 29
  if (length(NorP) != length(NorPexp)) {
31 30
    stop("NorP and NorPexp should have the same length.")
Files Coverage
R 76.18%
Project Totals (59 files) 76.18%

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