Ensemble Method in the Theory of Irreversibility