CMV

class CMV(*args, velocity_speed_ratios=None)[source]

Methods

__init__ Initialize self.
clear
convert
copy
correct_constant_velocity Corrects the gear shifting matrix velocity for constant velocities.
fit
fromkeys Create a new ordered dictionary with keys from iterable and values set to value.
get Return the value for key if key is in the dictionary, else default.
init_gear
init_speed
items
keys
move_to_end Move an existing element to the end (or beginning if last is false).
plot
pop value.
popitem Remove and return a (key, value) pair from the dictionary.
predict
setdefault Insert key with a value of default if key is not in the dictionary.
update If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
values
__init__(*args, velocity_speed_ratios=None)[source]

Initialize self. See help(type(self)) for accurate signature.

correct_constant_velocity(up_cns_vel=(), up_window=0.0, up_delta=0.0, dn_cns_vel=(), dn_window=0.0, dn_delta=0.0)[source]

Corrects the gear shifting matrix velocity for constant velocities.

Parameters:
  • up_cns_vel (tuple[float]) – Constant velocities to correct the upper limits [km/h].
  • up_window (float) – Window to identify if the shifting matrix has limits close to up_cns_vel [km/h].
  • up_delta (float) – Delta to add to the limit if this is close to up_cns_vel [km/h].
  • dn_cns_vel (tuple[float]) – Constant velocities to correct the bottom limits [km/h].
  • dn_window (float) – Window to identify if the shifting matrix has limits close to dn_cns_vel [km/h].
  • dn_delta (float) – Delta to add to the limit if this is close to dn_cns_vel [km/h].
Returns:

A gear shifting velocity matrix corrected from NEDC velocities.

Return type:

dict