Calculate empirical subcopula and dependence measures from a given bivariate sample, and Bernstein copula approximations.