lfiondella / SRT

Software Reliabilty Testing
5 stars 9 forks source link

DSS estimated time for next n failures goes negative. #22

Closed arhik closed 8 years ago

a1729nikora commented 8 years ago

It looks to me like a negative number means that there are no more failures to be seen. I've seen this in making predictions for SYS1 in a situation where there were 136 failures observed and an expected total number of 136.9... failures remaining. I fixed this by adding a check in the right function in "Detailed_predictions.R" to see if the estimated time to the next failure ever goes negative. If it does, I return "NA".

arhik commented 8 years ago

You mean you fixed it. If you fixed it. Please send a pull request with tagging this issue like 'Fixes #22'.

arhik commented 8 years ago

Allen fixed it in https://github.com/lfiondella/SRT/commit/11eece12edaed0eb4b47c04fc969569b044abb87