SEG random initialisation error
kevinwang09 opened this issue · 1 comments
kevinwang09 commented
SEG computation will occasionally throw up an error because of the random initialisation of the z
variable:
Line 221 in 98a362c
Due to random chances, z
could be a sequence of zeroes. This creates a problem of division by zero here:
Line 252 in 98a362c
As such, this breaks the while
condition in line 235.
kevinwang09 commented
This issue seems to be fixed by forcing a 1
in the first position of a sequence of all zeroes.
Line 222 in 9f572c7
More tests might be necessary in the future.