07-06-2012 06:42 AM - edited 07-06-2012 06:43 AM
thanks...
especially for the weighting (ups )
(this particular gaussian fit is usless for me because I need mine. Even it looks very good :))
07-10-2012 10:15 AM - edited 07-10-2012 10:30 AM
The weight is 1/variance, so you need to square the sdtdev. i.e. weight=(1/sd)² . (see also). Now the origin and nonlinear fit are very similar, see attached.
I don't understand why you have a big sequence structure. There is no problem with execution order.
Also most of your code is extremely convoluted. As an example, let's have a look at how you generate the origin data (see picture)
A simple autoindexing FOR loop is all that's needed (middle). You could even use an expression node, pasting the formula "as is". (I don't like that express VI at all, because you never know what it's doing unless you open the panel.)
07-10-2012 11:28 AM - edited 07-10-2012 11:29 AM
Here's a "slightly" cleaned-up version. Modify as needed.
LabVIEW is parallel. Don't chop up the code with sequence structures. I would also use complex for xy graphs, simpler data structures. 😄
07-10-2012 12:40 PM
Unbelievable, thanks a lot.
I appreciate that.
And many thanks for the weighting issue as well!
(The sequence structure was only to show what I'm doing in a clear way)
07-10-2012 01:03 PM
Ha, but I found an other question.
Now I get values for a,b,c,d. How do I get the standard deviation of them?
THANKS
07-10-2012 01:52 PM
@benodin wrote:
Now I get values for a,b,c,d. How do I get the standard deviation of them?
You can get it from the covariance matrix. Start with this thread.
07-13-2012 05:55 AM
as far as I understand:
take each value of the diagonal -> take the square root and multiply with the RMSE-> std of the coefficients
at least the results look very reasonable