Discrete Varying State Space Model