EDF.jl package: Finding sample rate of a signal

In other languages (e.g. Python and R), packages for reading EDF files typically include the capacity to extract the sampling rate of a signal. This doesn’t seem to be possible in the EDF.jl package. My two questions are: a. am I missing something in the package’s documentation? If not, b. what other ways are there to infer the sampling rate of a signal?

Note. Reading the EDF does not produce a Time vector (from such vector one could infer the sampling rate).

You have to calculate the sample rate on your own, I guess - you have seconds_per_record in the FileHeader and samples_per_record in the header of each signal, so dividing the latter by the former will give you samples per second.

1 Like