copp.interpolation.a_to_b_topp2

Convert a TOPP2 a(s) profile into edge b values.

Syntax

b = copp.interpolation.a_to_b_topp2(s, a)

Description

Returns the piecewise edge acceleration profile associated with node values A, where A(k) stores \((ds/dt)^2\) at station S(k). S and A must be real finite vectors of the same length N; row or column inputs are accepted. B is returned as an (N-1)-by-1 double column vector because TOPP2 b is interval-based.

Input Arguments

s

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

a

Second-order node profile. Element a(k) stores the squared path speed \((ds/dt)^2\) at station s(k).

Output Arguments

b

Interval or edge acceleration profile. For TOPP2 interpolation this is an (N-1)-by-1 column vector.

Examples

MATLAB
s = linspace(0, 1, 5).';
a = [0; 0.5; 1.0; 0.5; 0];
b = copp.interpolation.a_to_b_topp2(s, a);
disp(b)

See Also

copp.interpolation