I have an array of size 1000. I want to resize this array to 400 points.
I can't do truncation. Averaging is ok. Another way to this is to take every 2.5th element. But I can't do this 2.5 operation. How shall I appraoch this problem?
I have an array of size 1000. I want to resize this array to 400 points.
I can't do truncation. Averaging is ok. Another way to this is to take every 2.5th element. But I can't do this 2.5 operation. How shall I appraoch this problem?