optimized/fixed uniform downsampling; exact downsampling; documentation