I have a confusion with the function of ArrayResample.This is a illustrative picture in Details and Options about the method of "Bin":
Then I make a example like this:
list = {1, 1.5, 2.5, 3.5, 4.5};
NumberLinePlot[{list, ArrayResample[list, 7, "Bin"]}]
I find the result is very hard to understand
{ArrayResample[list, 7, "Bin"],
ArrayResample[list, 7, "Bin"] // Differences}
{{1, 9/7, 25/14, 5/2, 45/14, 55/14, 9/2}, {2/7, 1/2, 5/7, 5/7, 5/7, 4/7}}
I think the illustrative picture above just can explain the case when list = {0.5, 1.5, 2.5, 3.5, 4.5}
but the case when list = {1, 1.5, 2.5, 3.5, 4.5}
.Do anybody have a similar opinion?
NumberLinePlot
is misleading in any case. Remember, that the values taken as input and given as output are intended to be "y-coordinates", not "x-coordinates", if you will. $\endgroup$ – LLlAMnYP Feb 15 '16 at 23:28