s
Station grid or path-parameter samples. Use a real finite vector; station-grid inputs are usually strictly increasing.
[t_final, t_s] = copp.interpolation.s_to_t_topp2(s, a)
[t_final, t_s] = copp.interpolation.s_to_t_topp2(s, a, t0=t0)
Converts a second-order path-speed profile into arrival times. S and A must be real finite vectors of the same length N; either \(1 \times N\) or \(N \times 1\) input is accepted. A(k) stores \((ds/dt)^2\) at S(k).
Starts the cumulative time at T0. T_S is returned as an \(N \times 1\) double column vector, matching solver profile outputs.
sStation grid or path-parameter samples. Use a real finite vector; station-grid inputs are usually strictly increasing.
aSecond-order node profile. Element a(k) stores the squared path speed \((ds/dt)^2\) at station s(k).
t0Initial time offset added to the cumulative arrival-time grid. Default: 0
t_finalFinal traversal time. This is the last element of the cumulative time grid.
t_sCumulative arrival time at each station, returned as an \(N \times 1\) double column vector.
s = linspace(0, 1, 5).'; a = 0.2 + sin(pi*s).^2; [t_final, t_s] = copp.interpolation.s_to_t_topp2(s, a); disp([t_final, t_s(end)])