LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fitting with integral functions

Solved!
Go to solution

Hi,

 

I try to fit the data with integral functions.  It is impossible to obtain the analytical solutions of the integrations. 

The integration is Integral[ ( T - abs[x] ) f(x) dx, T, -T ] 

Here, f(x) is one of the autocorrelation functions for different model systems.

 

Thanks

 

Doogie

0 Kudos
Message 1 of 14
(3,167 Views)

Hi Doogie,

 

I'm not exactly sure what you are asking here. Could you clarify what you are looking for assistance with?

 

Thanks,

Matt J - NI Tools Network
0 Kudos
Message 2 of 14
(3,155 Views)

Hi, Matt,

 

I want to do fitting with the integral form. As I said, it is impossible to solve the integration so I cannot obtain the functional form without integral. How can I implement this task in Labview? Do you have any examples?

 

Thanks

Doogie

0 Kudos
Message 3 of 14
(3,135 Views)
Solution
Accepted by topic author photoon

Hi Doogie,

 

We certainly have integration and curve fitting VIs build into LabVIEW. For example, you can find several kinds of integrators in the Mathematics >> Integration & Differentiation palette. Also, if you are using our Control Design & Simulation Toolkit, this has integration built in as well. However, since you are dealing with an equation as opposed to sampled signals, I would begin by programming your equation in LabVIEW. Take a look at this forum thread that discusses this and has some example code posted. 

 

Once you have programmed the equation and can generate an array of points for your range, you could try inputting these into an integration function like the "Integrate x(t).vi" and then use a curve fitting function like the "General Polynomial Fit.vi" to generate a fitting equation for it. I would try getting started this way. Please let me know if I am not addressing the functionality you are interested in.

 

Best regards,

Matt J - NI Tools Network
0 Kudos
Message 4 of 14
(3,115 Views)
0 Kudos
Message 5 of 14
(3,110 Views)

Hi Matt,

 

I am confused about your explanation. The function which is supposed to be integrated has parameters. I don't know how to generate an array of points because these parameters should be determined by fitting later. I use nonlinear curve fit vi. Therefore, the problem is to express the integral of functions with labview functions. How do I do it with numerical integration? Please give me more advices.

 

- Doogie

0 Kudos
Message 6 of 14
(3,094 Views)

You would calculate a sufficiently dense array over the inner function between the integration boundaries, then do a numeric integration to get the integral.

0 Kudos
Message 7 of 14
(3,092 Views)

Can I do that with literal parameters?

0 Kudos
Message 8 of 14
(3,087 Views)

What are literal parameters?

0 Kudos
Message 9 of 14
(3,083 Views)

What I mean is the fitting parameters in the function which is to be integrated.

0 Kudos
Message 10 of 14
(3,081 Views)