How to store large samples of time series data in MATLAB?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi all, I am trying to store about 100 random samples of the following equations.
y(t) = µ + r(t)σ;
y(t) = µ + r(t)σ + a sin(2πt/T);
y(t) = µ + r(t)σ - gt;
Where
σ=5
y(t)=time series value
t=time
µ=mean value
a= amplitude of cycle variations
g= Magnitude of gradient trend
T= Period of cycle
The randomly distributed number is r(.).
Essentially, I'm trying to generate a lot of samples so that I can test the samples with various neural network time-series classifiers. My question is.. how do I create this data in MATLAB?
0 Commenti
Risposte (1)
Walter Roberson
il 6 Giu 2017
given a vector of times t,
ts1 = timeseries( mu + rand(size(t)) * sigma, t);
ts2 = timeseries( mu + rand(size(t)) * sigma + a * sin(2*pi*t/T), t);
ts3 = timeseries( mu + rand(size(t)) * sigma - g * t, t);
0 Commenti
Vedere anche
Categorie
Scopri di più su Sequence and Numeric Feature Data Workflows in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!