EricMarcon / dbmss

Compare 1d39ba1 ... +0 ... 691ef6b

Showing 1 of 3 files from the diff.
Other files ignored by Codecov
NEWS.md has changed.
DESCRIPTION has changed.

@@ -264,8 +264,7 @@
Loading
264 264
    const NumericVector Weight, 
265 265
    const LogicalVector IsReferenceType, 
266 266
    const LogicalVector IsNeighborType,
267 -
    NumericMatrix Nbd
268 -
    ) : 
267 +
    NumericMatrix Nbd) : 
269 268
    r1(r1), 
270 269
    RDmatrix(Dmatrix), 
271 270
    RWeight(Weight), 
@@ -365,8 +364,7 @@
Loading
365 364
    const NumericVector Weight, 
366 365
    const LogicalVector IsReferenceType, 
367 366
    const LogicalVector IsNeighborType,
368 -
    NumericMatrix Nbd
369 -
    ) : 
367 +
    NumericMatrix Nbd) : 
370 368
    r2(r2), 
371 369
    Rx(x), 
372 370
    Ry(y), 
@@ -471,8 +469,7 @@
Loading
471 469
    const NumericVector Weight, 
472 470
    const LogicalVector IsReferenceType,
473 471
    const LogicalVector IsNeighborType,
474 -
    NumericMatrix Nbd
475 -
    ) :
472 +
    NumericMatrix Nbd) :
476 473
    r1(r1),
477 474
    RDmatrix(Dmatrix), 
478 475
    RWeight(Weight),
@@ -487,7 +484,7 @@
Loading
487 484
    double Npoints = RIsNeighborType.length();
488 485
    unsigned int k, c;
489 486
    // c is the index of case points in the RNbd output matrix, whilst i is their index in input data
490 -
    c = std::count(RIsReferenceType.begin(), RIsReferenceType.begin()+begin, true);
487 +
    c = std::count(RIsReferenceType.begin(), RIsReferenceType.begin() + begin, true);
491 488
    
492 489
    for (unsigned int i = begin; i < end; i++) {
493 490
      // Consider cases
@@ -506,7 +503,7 @@
Loading
506 503
                }
507 504
                // The neighbor is a control: add j's weight to i's neighborhood
508 505
                if (RIsNeighborType[j]) {
509 -
                  RNbd(c, Nr+k) += RWeight[j];
506 +
                  RNbd(c, Nr + k) += RWeight[j];
510 507
                }
511 508
                // The neighbor is a case: add it to i's neighborhood
512 509
                if (RIsReferenceType[j]) {
@@ -559,8 +556,7 @@
Loading
559 556
    const NumericVector x,
560 557
    const NumericVector y,
561 558
    const IntegerVector ReferencePoints,
562 -
    NumericMatrix Nbd
563 -
    ) : 
559 +
    NumericMatrix Nbd) : 
564 560
    Rx(x), 
565 561
    Ry(y), 
566 562
    RReferencePoints(ReferencePoints), 

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
R 82.40%
src/CountNbd.cpp 65.55%
Project Totals (47 files) 79.82%
Loading