FC Coding is
One step from 1st Principles to Solution!


Problem-Solving Suggestion

Need a Sine wave Removed?

Sine wave removal or extraction from ones data is a two-step process that requires our CurvFit and SpectrumSolvers software. Here is a procedure to remove sine waves from digital data:

1. First execute SpectrumSolvers to find what are your key frequencies. For example, say SpectrumSolvers shows two key frequencies. Take these two frequencies as starting values for CurvFit's 'sine' model (question #10 input). Setup CurvFit to match these two frequencies against your data (lets call your data file A1).

2. If CurvFit converges okay, then your CurvFit Error plot should be called A2 (i.e. A2 = A1 - n * Sinewaves) where 'n' is number of sine waves removed (n = 2 in this example). Your error data is located in your '~4plots.dat' file. It is the third column. Delete or comment out the first few lines up to where the 4 column data begins. Then delete columns 2 and 4. Save the remaining save data as your 'A2' file.

3. If A2 data still shows a sine wave is involved, run SpectrumSolvers on A2 data and find what other frequencies are involved. Say SpectrumSolvers finds one more frequency from A2 data. Add this frequency to your CurvFit input (question #10) parameters. Now this example would have 3 frequencies. The A1 data is still in use as you rerun CurvFit. An edited CurvFit Error plot (see '~4plots.dat' file) will be your new A2 data file. If this new A2 data still shows sinusoidal ripple then back to the beginning of this paragraph you go. (Warning: CurvFit does a least-square error fit to converge that looks like a ripple. Can't remove this ripple!)

Once you make it here, A2 data is your A1 data minus 'n' sine waves.

CurvFit & SpectrumSolvers 6
Click on right Links to
Download Now

    Description (Click to download) Price
 1.    CurvFit: Fits Lorentz, Sine, Damped Sine, etc. series to data. Learn the power of a Lorentz series to fitting real data! $0.00
4.     SpectrumSolvers: Spectral Estimation Methods; and compare them. $0.00
All prices in US Dollars

HTML code for linking to this page:

<a href="https://goal-driven.net/misc/sinewave-removal.html"><img style="float:left; width:100px" src="https://goal-driven.net/image/curvfit-icon.png"/> <strong>Sine Wave Removal</strong> </a>, Sinusoidal Wave, Sine Wave, Signal Analysis.

Go to top

Problem-Solving Applications include:

CurvFit: a curve fitting program with Lorentzian, Sine, Exponential and Power series are available models to match your data.

Match-n-Freq: a Matched Filter program used to filter signals and slim pulses.

Industry Problem-Solving Descriptions include:

Electrical Filter Design: find the transfer function's poles & zeros; H(s) = Yout(s) / Yin(s).

Pulse Slimming to minimize InterSymbol Interference: via Arbitrary Equalization with Simple LC Structures to reduce errors.

Voice Coil Motor: basically an electromagnetic transducer in which a coil placed in a magnetic pole gap experiences a force proportional to the current passing through the coil.

AC Motor Design: a simulation program for A.C. motor design that was reapplied as a constrained optimization problem with 12 unknown parameters and 7 constraints.

Digitized Signal from Magnetic Recording: Magnetic recording of transitions written onto a computer disc drive may produce an isolated pulse as shown.

PharmacoKinetics: an open-two- compartment model with first order absorption into elimination from central compartment is presented here.

Valid CSS! Calculus-level Problem-Solving for Engineers & Scientists

Textbooks - Parameter Estimation 4 ODE/PDE - Signal Analysis / Spectral Estimation - Body Plasma - Solar Cell
Increasing Productivity Examples: AC Motor Design - Matched Filters - Pulse Slimming / InterSymbol Interference - Pilot (safe) Ejection - PharmacoKinetics Simulation - BVP 4 PDE Equations - Implicit (Differential) Equations