Re: Fitting polynomial curve

2011-03-18 Thread eryksun ()
On 3/17/2011 1:42 AM, Astan Chee wrote: > > I have 2 points in 3D space and a bunch of points in-between them. I'm > trying to fit a polynomial curve on it. Currently I'm looking through > numpy but I don't think the function exists to fit a function like this: > y = ax**4 + bx**3 + cx**2 + dx + e

Re: Fitting polynomial curve

2011-03-17 Thread Dan Stromberg
On Thu, Mar 17, 2011 at 5:44 PM, Astan Chee wrote: > > On Thu, Mar 17, 2011 at 5:09 PM, Terry Reedy wrote: > >> Look at scipy. >> > > Thanks for the info. I realized I made some mistakes. Anyway, what I'm > trying to do is in maya (python), fit selected vertices on a curve. Here is > what I have

Re: Fitting polynomial curve

2011-03-17 Thread Astan Chee
On Thu, Mar 17, 2011 at 5:09 PM, Terry Reedy wrote: > Look at scipy. > > -- > Thanks for the info. I realized I made some mistakes. Anyway, what I'm trying to do is in maya (python), fit selected vertices on a curve. Here is what I have so far: import maya.cmds as cmds import numpy def run_mai

Re: Fitting polynomial curve

2011-03-16 Thread Terry Reedy
On 3/17/2011 1:42 AM, Astan Chee wrote: Hi, I have 2 points in 3D space and a bunch of points in-between them. I'm trying to fit a polynomial curve on it. Currently I'm looking through numpy but I don't think the function exists to fit a function like this: y = ax**4 + bx**3 + cx**2 + dx + e (I'm

Fitting polynomial curve

2011-03-16 Thread Astan Chee
Hi, I have 2 points in 3D space and a bunch of points in-between them. I'm trying to fit a polynomial curve on it. Currently I'm looking through numpy but I don't think the function exists to fit a function like this: y = ax**4 + bx**3 + cx**2 + dx + e (I'm not sure what thats called but one degree