metric_engine_speed_model

metric_engine_speed_model(y_true, y_pred, times, velocities, gear_shifts, on_engine, stop_velocity, hybrid_modes, after_treatment_warm_up_phases=False)[source]

Metric for the engine_speed_model.

Parameters:
  • y_true (numpy.array) – Reference engine speed vector [RPM].
  • y_pred (numpy.array) – Predicted engine speed vector [RPM].
  • times (numpy.array) – Time vector [s].
  • velocities (numpy.array) – Velocity vector [km/h].
  • gear_shifts (numpy.array) – When there is a gear shifting [-].
  • on_engine (numpy.array) – If the engine is on [-].
  • stop_velocity (float) – Maximum velocity to consider the vehicle stopped [km/h].
  • hybrid_modes (numpy.array) – Hybrid mode status (0: EV, 1: Parallel, 2: Serial).
  • after_treatment_warm_up_phases (numpy.array) – Phases when engine speed is affected by the after treatment warm up [-].
Returns:

Error.

Return type:

float