MockDataLab
Physical SciencesPRL-style referenceseed 18

Synthetic damped oscillation dataset

The clean signal is exp(−0.12 t) cos(2.4 t), with t uniform on 0 to 18 and Gaussian noise of standard deviation 0.05. Seed 18 fixes the trace. The envelope shrinks while the cosine keeps a steady angular frequency.

Explicit waveform

y = exp(-0.12*t)*cos(2.4*t)

Static snapshotCSV (seed 18) ↓
Interactive dataset studio loads as it enters view…

What this page generates

A damped oscillation is the product of a shrinking envelope and a steady wave. Here the envelope rate is 0.12 and the angular frequency is 2.4 radians per unit time. The period is 2π/2.4, about 2.62 time units. Across 0 to 18 you get several cycles, and the envelope at the right edge is exp(−0.12×18), under 12 percent of the starting amplitude. Noise of 0.05 is tiny at the start and comparable to the signal near the end, which is what a real ringing sensor often looks like.

Because observation times are random, a naive peak-to-peak measurement needs the rows sorted by t first. Zero crossings of the clean column are the honest frequency check. Zero crossings of the noisy column get unreliable once the envelope falls near 0.05. That is a good reason to keep the clean column in the file while the banner still says the whole file is synthetic.

This is not the step response of a second-order differential equation, though the shape is related. The control bench integrates a transfer function under a step or a sine. This page samples an explicit formula. If you need input and output together, use the step-response page instead of pretending this single column is a system-identification record.

Generating rule

Explicit waveform

y = exp(-0.12*t)*cos(2.4*t)

Check values

Worked numbers

Sorting seed 18 by time, the clean cosine changes sign 14 times. The largest absolute clean sample is 0.984, near the start of the record, where the envelope is still close to 1. Angular rate 2.4 is the formula, not a count of those crossings.

Parameters and defaults

Parameters, defaults, and what they change
ParameterDefaultRangeEffect
tuniform [0, 18]finite intervalHow much of the ring is observed.
samples2402 to 20,000Denser random times make the cycles easier to see.
Gaussian std0.05≥ 0Hides late cycles before it hides early ones.
seed18unsigned 32-bitRepeats times and noise.

Python for this seed

Full script with mulberry32() & box_muller() available via Copy Python above

reproduce_seed_18.pyseed 18
# SYNTHETIC DATA - generated by MockDataLab (mockdatalab.com)
# This file is synthetic and must not be presented as real measurements, clinical data, or results from a physical instrument.
# generator: function-relation
# seed: 18
# formula: y = exp(-0.12*t)*cos(2.4*t)
# samples: 240

# mulberry32() and box_muller() are included when you copy the full script.


SEED = 18
N = 240
rng = mulberry32(SEED)

t = np.empty(N, dtype=np.float64)
y_clean = np.empty(N, dtype=np.float64)
y = np.empty(N, dtype=np.float64)

for i in range(N):
        t[i] = (0.0) + ((18.0) - (0.0)) * rng()
        y_clean[i] = (math.exp(((-(0.12)) * t[i])) * math.cos((2.4 * t[i])))
        noise = 0.0
        noise += (0.05) * box_muller(rng)
        y[i] = y_clean[i] + noise

columns = ["t","y_clean","y"]
data = np.column_stack([t, y_clean, y])

Exercises

  • EXERCISE 01Estimate frequency from sorted clean zero crossings and compare with 2.4.
  • EXERCISE 02Fit an envelope exp(−α t) on the absolute value of the peaks.
  • EXERCISE 03Demonstrate why late-time noise dominates a decaying tone.

Questions

Is 2.4 a frequency in hertz?

It is an angular rate in radians per unit of t. Hertz would be 2.4/(2π) if one unit of t is one second. The file does not name the unit.

Why does the noisy series look one-sided near the end?

The cosine is small and the noise is symmetric around it, so the sign pattern of the wave is no longer obvious.

Are consecutive samples one period apart?

No. Times are random. Sort by t before you talk about a period.

Related

SYNTHETIC DATA - generated by MockDataLab (mockdatalab.com). Do not present the download as a real measurement.