newZ creates new vector based on a transition matrix. It is a helper function for muti.

newZ(tM, n_bins)

Arguments

tM

The output from transM; a list with elements xn and MM.

n_bins

The number of bins to use; passed from muti.

Value

A vector of resampled values.