| Author |
Comment/Response |
aliens! ah!
|
05/08/12 6:58pm
{{2,201},{3,203},{6,205},{8,207}}
I want a function that will make sure my list is complete. it is supposed to be 1-10 I want to fill in the blanks. if a missing point/s is between two points, just take average of the two surrounding points and fill in the blanks. lets say its missing point/s on the edge. just duplicate the nearest point and fill in
1 is missing (and on the edge of the data) fill in with nearest point which is {2,201}
produce data point {1,201}
4,5 are missing. (and in the middle of data) fill in with average of surrounding points which are ({3,203},{6,605})
produce data points {4,204} and {5,204}
7 is missing and in the middle of data. fill in with average of surrounding data points.
produce data point {7,206}
9,10 are missing. fill in with nearest point. which is {8,207}
create data points {9,207},{10,207}
output
{{1,201},{2,201},{3,203},{4,204},{5,204},{6,205},{7,206,},{8,207},{9,207},{10,207}}
URL: , |
|