discrete latent variable: Nonlinear Function