TommyJones / mvrsquared

@@ -16,6 +16,8 @@
Loading
16 16
    int threads
17 17
) {
18 18
19 +
  Y = Y.t(); // transpose Y to take advantage of column major for parallelism
20 +
19 21
  int n_obs = Y.n_cols; // number of observations
20 22
  NumericVector result(2); // final result
21 23
  double SSE = 0; // sum of squared errors across all documents

@@ -103,7 +103,7 @@
Loading
103 103
    ybar <- Matrix::colMeans(Y)
104 104
105 105
  result <- calc_sum_squares_latent(
106 -
    Y = t(Y), # transpose so we can take advantage of column major form
106 +
    Y = Y,
107 107
    X = Yhat[[1]],
108 108
    W = Yhat[[2]],
109 109
    ybar = ybar,
Files Coverage
R/calc_rsquared.R 97.87%
src/calc_sum_squares_latent.cpp 100.00%
Project Totals (2 files) 98.29%
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