lsqcurvefit in C
- From: "krishna Kumar Narayanan" <krumz@xxxxxxxxx>
- Date: Thu, 9 Mar 2006 04:12:41 -0500
Hello everybody,
I have a problem with the computation time of lsqcurvefit in Matlab.
I perform a least square minimization over a set of p vectors in
matlab. But the converge takes more than a second which is not
feasible for real time. Hence i wanted to implement Least square
minimization in C to save time.
I found many different libraries, but unfortunately none of the
libraries deal with sets of Vectors but only sets of nx1 points. It
would be really great if i can find any library or a C routine which
can do least squares over a Set of vectors(technically n x m matrix)
and give me a n x 1 vector as a solution.
this is how my code in matlab looks.
[T,resnorm] = lsqcurvefit(@(x,Xdata)
sphericalLeastS(x,Xdata,b),x0,Xdata,Ydata);
Xdata is a 3 x 280 matrix. (set of vectors)
Ydata is a 3 x 280 matrix
T obtained would be a 3 x 1 vector
Thanking you
krishna
.
- Prev by Date: Re: Programming Functions
- Next by Date: Re: image cropping probs
- Previous by thread: Synchronous reading from 5 Cards
- Next by thread: Advantages of using the Compiler
- Index(es):
Relevant Pages
|
Loading