VARIATIONAL APPROACH TO GENERALIZED STATISTICS