This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Rather than using the pchip method of nding the slopes, compute the slope d k as the arithmetic mean (average) of k-1 and k . Do this even where the s dier in sign. For the endpoints, use d 1 = 1 and d n = n-1 . Create some data to interpolate, and compare and contrast the three methods: splinetx , pchiptx , and your new method. Try several data sets, and try to nd one the points out any aws in the method you develop. Also use the one I used in class: y = [0 0 0 0 0 1 1 1 1 1] x = 1:10 2...
View Full Document
- Fall '08