1 function s = time_samps(n)
2 %creates simulated data for testing and training the neural network to be
3 %used in module_fr_sfire_core.F
5 % n - number of samples to create.
7 % s - nx5 matrix with rows representing times at the corners of a cell and
8 % the fuel constant _fuel_cell_time. Each row is arranged as
9 % [t00, t01 t10 t11 fuel_time_cell], where t00,...,t11 are taken to be
10 % the time since ignition arranged as:
16 %matrix for [t00, t01 t10 t11 fuel_time_cell]
20 s(:,1:4) = 1000*randn(n,4);
21 %or use uniform randoms
22 %s(:,1:4) = -1000 + 2000*rand(n,4);
25 s(:,5) = 8 + 2000*rand(n,1);