brainconn.utils.misc.teachers_round

teachers_round(x)[source]

Do rounding such that .5 always rounds to 1, and not bankers rounding. This is for compatibility with matlab functions, and ease of testing.