Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'simple creation of data points' topicStudent Support Forum > General > Archives > "simple creation of data points"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'simple creation of data points')
Author Date Posted
simple creation of data points aliens! ah! 05/08/12 6:58pm
Re: simple creation of data points Bill Simpson 05/10/12 11:04pm
Next Comment >Help | Reply To Topic