Generalized ensemble theory with non-extensive statistics