INNER CODE UNIT · C

rstart

mlr-org/mlr · todo-files/fda_multires_features.c:80

    rstart = 0; // starting index where we write into row of resmat
    for (R_len_t j = 0; j < n_curves; j++) { // loop thru curves per obs
      clen = curve_lens[j]; // get length of current curve
      /* Rprintf("curve start, len: %i, %i\n", sstart, clen); */
      // now calc all features for current curve and write them to resmat
      c_get_curve_features(x, nrow_x, ncol_x, x_read_row, sstart, clen,  // get current curve segment from x (sstart, clen)
        resmat, nrow_resmat, ncol_resmat, x_read_row, rstart, &rcounter, // write to same row in resmat (at rstart), get write length
        reslev, shift);
      /* Rprintf("rcounter = %i\n", rcounter); */
      sstart += clen; // shift read start point by length of last curve
      rstart += rcounter; // shift write start point by length of last written result
    }
  }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…