  We prove large (and moderate) deviations for a class of linear combinations
of spacings generated by i.i.d. exponentially distributed random variables. We
allow a wide class of coefficients which can be expressed in terms of
continuous functions defined on [0, 1] which satisfy some suitable conditions.
In this way we generalize some recent results by Giuliano et al. (2015) which
concern the empirical cumulative entropies defined in Di Crescenzo and
Longobardi (2009a).
