Skip to content

Commit

Permalink
Update computational_functions.R
Browse files Browse the repository at this point in the history
  • Loading branch information
william-denault committed Jan 11, 2024
1 parent 6d268d8 commit a13f2ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/computational_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,11 @@ fit_hmm <- function (x,sd,
if( length(which(sd< thresh_sd))>0){
sd[ which(sd< thresh_sd)] <- thresh_sd
}
if (sum(is.na(sd))>0){
x [ which( is.na(sd))]<- 0
sd[ which( is.na(x))]<- 1
}


if( length(which(abs(x/sd)> max_zscore))>0){ #avoid underflow a z-score of 20=> pv< e-90

Expand Down

0 comments on commit a13f2ce

Please sign in to comment.