When z is larger than 10 5 , log(z!) is very close to zlog (z) (> 90%). In order to simplify the calculation, log(z!) is replaced by zlog(z). When z is small, log(z!) is still used. The actual situation is that all the same cells are generated and deployed by many times. 