"setThresh.MBgibbsPars" <- function(x,thresh) { isValid <- validObject(x) x@thresh <- thresh isValid <- validObject(x) return(x) }