copp.interpolation.t_to_s_topp3

Compatibility wrapper for TOPP3 time-to-path interpolation.

Syntax

s_t = copp.interpolation.t_to_s_topp3(s, profile, t_s)
s_t = copp.interpolation.t_to_s_topp3(s, profile, t_s, dt=dt, t_sample=t_sample, t0=t0, include_final=include_final)

Description

= copp.interpolation.t_to_s_topp3(S, PROFILE, T_S, dt=DT) samples a uniform grid and delegates to t_to_s_topp3_uniform(). S and T_S must have length N, matching the \(N \times 1\) PROFILE.a and PROFILE.b vectors.

= ...t_to_s_topp3(..., t_sample=T_SAMPLE) samples explicit times and delegates to t_to_s_topp3_samples(). T_SAMPLE has M elements, and S_T is returned as an M-by-1 double column vector.

Exactly one of dt or t_sample must be supplied. New code may call the explicit uniform/samples helpers directly.

Input Arguments

s

Station grid or path-parameter samples. Use a real finite vector; station-grid inputs are usually strictly increasing.

profile

Third-order profile object containing a, b, and stationary-node metadata.

t_s

Cumulative arrival time at each station, returned as an \(N \times 1\) double column vector.

Name-Value Arguments

dt

Uniform time step used to create sampling times from zero to the final traversal time. Default: []

t_sample

User-provided time samples where \(\(s(t)\)\) should be evaluated. Default: []

t0

Initial time offset added to the cumulative arrival-time grid. Default: 0

include_final

Whether sampling helpers should include the final time sample exactly. Default: true

Output Arguments

s_t

Sampled path parameter values \(s(t)\).

See Also

copp.interpolation