Parametric estimation of randomly compressed functions