Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ssadaadadad committed Feb 18, 2020
1 parent 62b070c commit f0641c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/npwork/edfparser/dto/EdfFile.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ data class EdfFile(
val signal: EdfSignal
) {
val samples: List<Int> = (0 until header.numberOfChannels).map { signal.digitalValues[it].size }.toList()
val sampleRate: List<Double> = samples.map { it / header.durationOfRecords }.toList()
}
val sampleRate: List<Double> = samples.map { it / (header.numberOfRecords * header.durationOfRecords) }.toList()
}

0 comments on commit f0641c2

Please sign in to comment.