Create a parametric curve representation of your nickname written in your handwriting. This representation should be...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a parametric curve representation of your nickname written in your handwriting. This representation should be based on parametric spline interpolation. Your nickname must have at least two curved segments .Figure 1 below shows an example using 5 coarsly -sampled segments. -Bone Figure 1: The nickname "T-Bone" written with 5 parametric cubic spline segments Steps: Nickname: Ant (a) Draw your nickname and select interpolation points. You can do this on graph paper by hand, or you can use ginput. Make sure the interpolation points are not too close together. Notice that the loops of the "B" in Figure 1 are made from only 6 points each. Your curved segments should be sampled sparingly. (b) Add code to the notebook to initialize and store the interpolation points for each segment. For example, you could store the coordinates of the interpolation points for the first segment in the arrays x1 and y1, and you would have one x-y pair of arrays for each segment. Your data arrays should be hardcoded into your script. (c) Complete the function Parametricspline; it takes the interpolation points of one segment as input, and outputs a pair of cubic spline functions (one for x (t) and one for y (t)), along with an array, t, that holds the parameter value at the interpolation points. See the function's documentation for more details. The parameter t must reflect the pseudo-arclength of the curve. You can use scipy.make_interp_spline (and return the spline functions that it creates). Alternatively, if you feel confident in your MySpline function, you can use that instead. (d) Add lines to the notebook to call ParametricSpline for each segment in your nickname. (e) Add more lines to to the notebook to plot your nickname. The plot should graph the para- metric spline segments using a refined selection of parameter values (eg. 1000 points per segment). The plot should also display the original interpolation points, and the x and y axes should be rendered using the same scale ("plt.axis ('equal')"). Figure 1 is an example of what your output should look like. 0 -50 100 -150 -200 -250 -300 Ant 100 200 300 400 500 600 700 Create a parametric curve representation of your nickname written in your handwriting. This representation should be based on parametric spline interpolation. Your nickname must have at least two curved segments .Figure 1 below shows an example using 5 coarsly -sampled segments. -Bone Figure 1: The nickname "T-Bone" written with 5 parametric cubic spline segments Steps: Nickname: Ant (a) Draw your nickname and select interpolation points. You can do this on graph paper by hand, or you can use ginput. Make sure the interpolation points are not too close together. Notice that the loops of the "B" in Figure 1 are made from only 6 points each. Your curved segments should be sampled sparingly. (b) Add code to the notebook to initialize and store the interpolation points for each segment. For example, you could store the coordinates of the interpolation points for the first segment in the arrays x1 and y1, and you would have one x-y pair of arrays for each segment. Your data arrays should be hardcoded into your script. (c) Complete the function Parametricspline; it takes the interpolation points of one segment as input, and outputs a pair of cubic spline functions (one for x (t) and one for y (t)), along with an array, t, that holds the parameter value at the interpolation points. See the function's documentation for more details. The parameter t must reflect the pseudo-arclength of the curve. You can use scipy.make_interp_spline (and return the spline functions that it creates). Alternatively, if you feel confident in your MySpline function, you can use that instead. (d) Add lines to the notebook to call ParametricSpline for each segment in your nickname. (e) Add more lines to to the notebook to plot your nickname. The plot should graph the para- metric spline segments using a refined selection of parameter values (eg. 1000 points per segment). The plot should also display the original interpolation points, and the x and y axes should be rendered using the same scale ("plt.axis ('equal')"). Figure 1 is an example of what your output should look like. 0 -50 100 -150 -200 -250 -300 Ant 100 200 300 400 500 600 700
Expert Answer:
Answer rating: 100% (QA)
To solve the parametric curve representation of your nickname Ant written in your handwriting using parametric spline interpolation you would follow t... View the full answer
Related Book For
Modern Database Management
ISBN: 978-0133544619
12th edition
Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi
Posted Date:
Students also viewed these programming questions
-
Respond to the following in a minimum of 175 words: Are outside financial analysts helpful or hurtful to investors? Do you believe outside financial analysts are objective or subjective with their...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
You can think of the work-kinetic energy theorem as a second theory of motion, parallel to Newton's laws in describing how outside influences affect the motion of an object. In this problem, solve...
-
An employee earns $22 per hour and 11/2 times that rate for all hours in excess of 40 hours per week. Assume that the employee worked 50 hours during the week, and that the gross pay prior to the...
-
Draw and name the eight isomeric alcohols with formula C5H12O.
-
Given (a) Find the best straight line y = a + fit that fits the data in the least squares sense; (b) Find the best parabola y - α + βt + yt2 that fits the data. Interpret...
-
A parallel-plate capacitor in which the plates are extendable is connected to a battery and charged until there is a charge \(+q\) on one plate and a charge \(-q\) on the other plate. (a) With the...
-
Retzlaff Company's income statement contained the condensed information below. Retzlaff's balance sheet contained the comparative data at December 31. Accounts payable pertain to operating...
-
1. 49 The value of n(n+n+1) is equal to (10a) [10a-3. The value of (a + ) is n=1 48 47 46 2 1 2. If + + + + + = (2)(3) (3)(4) (4)(5) (48)(49) (49)+(50) k is equal to 3. +++++ Then 4. 5. In a...
-
Listed below is a vertical analysis of selected information from the financial statements of five publicly traded Canadian companies: One of the companies included in the vertical analysis above...
-
1. Read the scenario below: Jon Wayne recently graduated from college with a degree in graph design. He was immediately place with a company where he would be able to apply the skills he learned...
-
Discuss the importance of surprise check.
-
What is interim audit? Why it is required?
-
What is routine checking? What types of work are included in routine checking? What are the objectives of routine checking? Describe the advantages and disadvantages of routine checking. Discuss the...
-
State the controls that can be applied over inputs and processing of data in a computerised accounting environment.
-
Distinguish between principles of auditing and techniques of auditing.
-
Interpreting plots Bar chart showing the proportion of cars of each color, bymanufacturer: A luxury car dealership sells cars from four manufacturers(Ferrari, Jaguar, Lamborghini, and Mercedes) in...
-
San Carlos Bank and Trust Company uses a credit-scoring system to evaluate most consumer loans that amount to more than $2,500. The key factors used in its scoring system are found at the conclusion...
-
What is the average length of time a student stayed (or has stayed) in the program?
-
Figure 4-37 includes an EER diagram describing a publisher specializing in large edited works. Transform the diagram into a relational schema that shows referential integrity constraints (see Figure...
-
Compare and contrast the following terms: a. Data administration; database administration b. Repository data dictionary c. Deadlock prevention; deadlock resolution d. Backward recovery; forward...
-
A euro-area country that runs very large public deficits or shows a persistently high and rising debt-to-GDP ratio violates the provisions of a 2012 treaty aimed at promoting fiscal stability....
-
How does the time consistency problem apply to the conduct of monetary policy? How might long terms of office for central bankers help overcome it?
-
Consider the following data for Country A and Country B: Use these data to show that the ratio of public debt to GDP is expected to stabilize in Country A but not in Country B. How might this impact...
Study smarter with the SolutionInn App