A physical phenomenon I'm studying obeys the simple law (harmonic oscillator):
$$\theta=\theta_0\cos(\omega t),$$
where $\theta$ is an angle, $\theta_0$ the amplitude of the oscillation, $\omega$ its angular frequency and $t$ is time.
I have a large data set $(\theta, t)$ with which to determine $\theta_0$, $\omega$ and from the latter the period $T$ (from $\omega=\frac{2\pi}{T}$).
My first thought was to linearize with:
$$\arccos\left(\frac{\theta}{\theta_0}\right)=\omega t,$$
but in reality I don't know the value of $\theta_0$, even though I could get a good estimate from the data plot.
Wikipedia has a nice entry about non-linear regression but I'm unfamiliar with the listed methods.
Any help would be appreciated.

Here's how I would approach the problem:
Here's some LabVIEW code and a front panel that accomplishes this (the code is a VI snippet, so you can download and use the code yourself if you have LabVIEW 2014 SP1 or higher):
Code:
Results: