Noncommutative analysis and quantum physics I. Quantities, ensembles and states