Struct PowerLawSpeedResidual

Struct Documentation

struct PowerLawSpeedResidual

Cost functor for fitting power law speed profiles.

Templated for automatic differentiation.

Internal use only (see fit_power_law_speed).

Public Functions

PowerLawSpeedResidual(double z, double u, double z_ref = 1.0, double u_ref = 1.0)
template <typename T>
bool operator()(const T *const alpha, T *residual) const