Calculating the dimension of attractors from small data sets