evalclass / precrec
Showing 1 of 3 files from the diff.
Newly tracked file
src/precrec_plx.cpp changed.
Other files ignored by Codecov

@@ -117,7 +117,6 @@
Loading
117 117
// Solve tied scores
118 118
void solve_ties(std::vector<double>& tp, std::vector<double>& fp,
119 119
                unsigned curpos, unsigned ties) {
120 -
121 120
  const double tied_tp = (tp[curpos] - tp[curpos-ties-1]) / (ties + 1);
122 121
  const double tied_fp = (fp[curpos] - fp[curpos-ties-1]) / (ties + 1);
123 122
  for (unsigned i = 0; i < ties; ++i) {
@@ -795,7 +794,7 @@
Loading
795 794
  n_y[vec_size - 2]  = 1;
796 795
797 796
  // Treat missing values
798 -
  for (int i = 0; i < vec_size; ++i) {
797 +
  for (unsigned i = 0; i < vec_size; ++i) {
799 798
    if (n_y[i] == 0) {
800 799
      if (n_y[i-1] != 0 && n_y[i+1] != 0) {
801 800
        s_y_val[i] = (s_y_val[i-1] + s_y_val[i+1]) / 2.0;
@@ -847,17 +846,17 @@
Loading
847 846
  std::vector<double> stot_y;        // Total of squared ys
848 847
849 848
  // Create all unique x values
850 -
  for (int i = 0; i < points.size(); ++i) {
849 +
  for (unsigned i = 0; i < static_cast<unsigned>(points.size()); ++i) {
851 850
    Rcpp::List c = Rcpp::as<Rcpp::List>(points[i]);
852 851
    Rcpp::NumericVector xs = c["x"];
853 852
854 -
    for (int j = 0; j < xs.size(); ++j) {
853 +
    for (unsigned j = 0; j < static_cast<unsigned>(xs.size()); ++j) {
855 854
      all_x_vals.insert(xs[j]);
856 855
    }
857 856
  }
858 857
859 858
  // Resize vectors
860 -
  int vec_size = all_x_vals.size();
859 +
  const unsigned vec_size = static_cast<const unsigned>(all_x_vals.size());
861 860
  x_val.resize(vec_size, 0.0);
862 861
  avg_y.resize(vec_size, 0.0);
863 862
  se_y.resize(vec_size, 0.0);
@@ -878,12 +877,12 @@
Loading
878 877
879 878
  // Calculate total
880 879
  idx = 0;
881 -
  for (int i = 0; i < points.size(); ++i) {
880 +
  for (unsigned i = 0; i < static_cast<unsigned>(points.size()); ++i) {
882 881
    Rcpp::List c = Rcpp::as<Rcpp::List>(points[i]);
883 882
    Rcpp::NumericVector xs = c["x"];
884 883
    Rcpp::NumericVector ys = c["y"];
885 884
886 -
    for (int j = 0; j < ys.size(); ++j) {
885 +
    for (unsigned j = 0; j < static_cast<unsigned>(ys.size()); ++j) {
887 886
      idx = x_vals_idx[xs[j]];
888 887
889 888
      tot_y[idx] += ys[j];
@@ -896,8 +895,8 @@
Loading
896 895
  double exp2;
897 896
  double sd;
898 897
  double n;
899 -
  for (int i = 0; i < vec_size; ++i) {
900 -
    n = double(count_y[i]);
898 +
  for (unsigned i = 0; i < vec_size; ++i) {
899 +
    n = static_cast<double>(count_y[i]);
901 900
902 901
    // y
903 902
    avg_y[i] = tot_y[i] / n;
@@ -929,4 +928,3 @@
Loading
929 928
  return ret_val;
930 929
}
931 930
932 -
Files Coverage
R 82.01%
src 93.68%
Project Totals (35 files) 84.74%

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