mean error - ksoltan/RoboFish GitHub Wiki

mean_error

Calculates the average error between a line defined by two points and the posture function restricted to the domain of the line.

Parameters:

        base_pt - Coordinates of initial point of line
         end_pt - Coordinates of terminal point of line
              t - Time at which to evaluate posture
   posture_func - Swimming model function

Returns:

  Average error between line defined by two points and the specified posture,
  which is restricted to the domain of the line.

See Also:


get_posture