Based on what I've read (and this isn't official from Microsoft) Excel uses Bezier interpolation to create smooth curves from three or more points. I played around with polynomials and it never looked right. Increasing the number of controls points generated larger polynomial equations and the curves didn't look like what I want. That's how I learned about Beziers and subsequently splines. I tried both of those modules, and now the Interpolate one. Here is an example of Spline vs. Interpolate. Also in this graph is the Interpolate with three control points. As you can see the three points makes just a parabola (p<0). https://www.dropbox.com/s/9cnl1jp9zzzhh19/Interpolate_example1.1.pdf

So far only Math::Interpolate has given me a shape that is close enough to what I need with 5 points (three real points and two that are guesses). The problem is the height of each point. That has to be right. Hence the need to scale.


In reply to Re^4: operate on an array created in a subroutine by captainentropy
in thread operate on an array created in a while loop by captainentropy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.