Imported transition matrix class.