I have a set of positive values and I need to increase or decrease this set by adding or reducing number of values. But I would like the mean of values is not altered much.
Example: I have this array {1,1,1,1,1,2,4,4,15,20} size is 10 I need size 8 or 16 (I always need pow of two) so not to alter too, I prefer to delete two values in this array, instead reaching size 16. How I chose this two value ?? The average may change a little bit, but not too.