psr_21-22 icon indicating copy to clipboard operation
psr_21-22 copied to clipboard

type_hit_average_duration / type_miss_average_duration

Open tiagomateus25 opened this issue 3 years ago • 2 comments

Good afternoon, I was coding for the assignment, and a problem came along that seems to be easy to solve but i dont understand how to do so. when we want to calculate type_hit_average_duration / type_miss_average_duration the problem that appears is when we either hit all of the requested chars or when we miss all of them. we will be dividing the time by 0 since we want the average of times for correct answers or incorrect answers. How can i solve this problem?

Screenshot from 2021-10-30 14-59-34

tiagomateus25 avatar Oct 30 '21 14:10 tiagomateus25

Hi @TiagoMFonte ,

in those cases you can just say that average can be "None".

miguelriemoliveira avatar Oct 30 '21 14:10 miguelriemoliveira

Ok, thanks.

tiagomateus25 avatar Oct 30 '21 14:10 tiagomateus25