Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I have a curve that looks like this (it's cyclical):

Curve

I can get a partial fit by fitting a 3rd degree polynomial, but I have a feeling there must be a better fit (something that involves sin & cos).

The fitted $a*t^3 + b*t$ curve looks like this:

Fitted Curve

Any ideas? thanks.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

You could try to fit higher-order polynomials, which should give you the flexibility needed to ensure differentiability or some such constraint. Or if you're willing to try parametric curves, you can get a fit relatively easily, like $$x(t)=\sin(t)+t, y(t)=\sin(t)$$

I assume that you explicitly want the skewed nature of the wave in your picture. Tuning the amount of skew, height, etc. in the parametric formula is just a matter of tweaking a few parameters.

share|improve this answer

Assuming $\Delta \approx \dfrac{\hat\tau - \tau}{2}$, then we have:

$$ f(\Delta ) \sin \left(\frac{\pi x}{2\Delta}\right) $$

Where $f(\Delta)$ is the value of the function at $\Delta$.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.