wfdb-app-toolbox icon indicating copy to clipboard operation
wfdb-app-toolbox copied to clipboard

mexrdsamp to do list

Open cx1111 opened this issue 8 years ago • 1 comments

  • [x] De-interleave the samples
  • [x] Global variables are keeping their values between calls. Readjust accordingly.
  • [x] Make sure gateway function and helpers can be appropriately called for all input combinations.
  • [x] Add if condition to preallocate array when size is known beforehand.
  • [x] Clear global variables declared in the wfdb library, not directly in rdsamp,after the rdsamp exit.
  • [ ] Compile for all platforms

cx1111 avatar Nov 08 '16 16:11 cx1111

I am trying to figure out the best way to solve the de-interleaving issue, as in arranging the samples in the correct order for the output matlab matrix. An inefficient solution is easy but we want to save as much computation as possible.

  1. If we don't know the signal length beforehand

*EDIT: Done. Dynamically allocate growing array. Copy over to another array to de-interleave. *

  1. If we do know the signal length beforehand.
  • Preallocate a double pointer and store the samples in the correct indices. Point the matlab matrix to it and reshape. Easy.

from and to default to 0 unless explicitly specified. strtim("e") gives 0 if missing or gives the signal length. freq gives the sampling frequency or defaults to 250.

cx1111 avatar Nov 09 '16 16:11 cx1111