For fixed $\omega$ and $k$,parameters like `xa`, `xb`, `caca` and `cbcb` for each layer are determined.