Adept Scientific - English
The world's best software for research, science and engineering.
flag arrow
clearclear
 

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKusdedksvnofi
Home
Products
Training
Consultancy
 Buy Online
Downloads
Education
Support
My Adept
International |  About Us |  Contact Us |  Press Room |  Jobs


The Next Steps

• Ask us a question
• Buy Mathcad Now
• View Mathcad Pricing
• Request a Demo
• Download a Brochure
• Find out about Training
• Sign up for a Webinar
• Meet Our Team
• Read our RSS Feeds

Learn More

Mathcad Home
What can Mathcad do?
Version Comparison Chart
Mathcad for Education
Add-ons
Rave Reviews

System Requirements

Latest Information

New Features in Mathcad 14
Using Mathcad and Excel
Engineering Application
Packs

Return on Investment

Service & Support

Patches & Downloads
Chemical & Process
Engineering with Mathcad

Frequently Asked Questions
Search the Knowledge Base
Join the Discussion List
Search the List Archive
Mathcad Library

List Archives >  Mathcad List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[mathcad] RE: Sinus regression using genfit

Search email archive for  

[mathcad] RE: Sinus regression using genfit
Author: Oakley, Philip SELEX UK    Posted: Thu, 16 Feb 2006 10:09:02 +0000

Not looked at the attachement but...

The function looks to be effectively the result of an fourier transform, plot the maginitude and phase, taking the DC component as a3, then read of the peak frequency (~a2), the amplitude of the peak (a0) and the phase of the peak (a1.a2~2pi).

You would use the cfft/CFFT rather than fft/FFT because they cope with data lengths not 2^n. (but not irregular sampling!!)
Specifically use CFFT because this give the amplitide of a spot frequency, rather than energy density (which would apparently change the value for a spot frequency amplitude when providing a different number of samples - note the root(n) in its definition - see the help file.)
Because your data is regularly sampled (x spacing of 2) you can either use the y data directly and allow for the 2 factor yourself, or
More effectively, use zero stuffing. Because fourier analysis is additive [principle of superposition] you can add as many zeros as you like to the data.
so determine the max x value, find next 2^n, then fill in thge values you have at the right place, then do the FFT, plaoit magnitude and phase, read of values needed ( allow for 2pi radians/cycle and all that, and the first frequency on the plot is at one cycle per 2^n.

If you need finer resolution, add an extra power of 2 to 2^n. The zero stuffing theorem handles everything.

[OK so I have looked at the attachement now]

Philip

From: Torgrim Sandvoll "mailto:torgrim"
Sent: 15 February 2006 17:14
To: Mathcad Discussion List
Subject: [mathcad] Sinus regression using genfit


*** WARNING ***

This mail has originated outside your organization,
either from an external partner or the Global Internet.
Keep this in mind if you answer this message.

Hi,

Trying to fit data to the general (sinusoidal) function:
f(x,a):a0*sin(a1*(x+a2))+a3
(The periodic data for regression is often used in Norwegian highschool
math)

(See attached Mathcad (v11+) document)

Have tried with genfit, but this method seems very sensitive to the guess
values given.

Any better way to solve this problem would be appreciated!

Have a nice day! :-)

Best regards,
Torgrim Sandvoll


********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************


[View Complete Thread]



Previous by date: [mathcad] RE: Sinus regression using genfit,  Pergande, Albert N
Next by date: [mathcad] RE: Sinus regression using genfit,  Potter, Mick
Previous thread: [mathcad] Sinus regression using genfit,  Torgrim Sandvoll
Next thread: [mathcad] Re: Sinus regression using genfit, William J Marshall



Ready to buy?

For more pricing information:
Visit our webstore, call us on +1 800 724 8380 or email us at info@adeptscience.com

Featured Downloads

Mathcad 14 demo
Mathcad 14 Brochure
Mathcad or Excel?
Mathcad Customer Story: Man B&W Diesel
Mathcad Customer Story: Stork Fokker Aerospace
Mathcad White Paper - Moving beyond the limitations of spreadsheets

Product Reviews

"Our work ranges from complex medical imaging research to large-scale mapping and diagrams and we need a tool that is able to handle anything we investigate. With Mathcad, we are able to manipulate and analyse our data quickly while at the same time documenting our work, for sharing and publication. We also use it for pilot studies conducted in support of research grant applications. It is an end-to-end tool for research and development."
Dr. Kenneth Castleman, President of Advanced Digital Imaging Research (ADIR), Houston, Texas

"Mathcad is an integral product for my work... With Mathcad, itís easy to disseminate design calculations because the documents look like real math. Thereís very little I canít do in Mathcad. The main benefits come from the format, which resemble a typed set of calculations. These programs are easier to develop by engineers and easier for others to follow and review since the logic is expressed in a familiar manner. The format is what places Mathcad head and shoulders above other programs of a similar function."
Andre Pavlov, Structural Engineer, Florida Department of Transportation
adept

Top of the Page

Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2007, Adept Scientific plc.
Site designed and maintained by Adeptise

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055