voyager/vessel.py
def update_mean_speed(self, dt):
        """Updates the total mean speed of the trajectory
        from the total distance travelled.

        Args:
            dt (float): time step during the simulation (s)
        """

        N_SECONDS_PER_HOUR = 3600
        self.mean_speed = self.distance / (len(self.trajectory) * dt / N_SECONDS_PER_HOUR) # km/h

        return self
Updates the total mean speed of the trajectory
        from the total distance travelled.

        Args:
            dt (float): time step during the simulation (s)
        
Updates the total mean speed of the trajectory
from the total distance travelled.
Updates the total mean speed of the trajectory from the total distance travelled .
def update_mean_speed(self, dt):
        N_SECONDS_PER_HOUR = 3600
        self.mean_speed = self.distance / (len(self.trajectory) * dt / N_SECONDS_PER_HOUR) 
        return self
def update_mean_speed ( self , dt ) : N_SECONDS_PER_HOUR = 3600 self . mean_speed = self . distance / ( len ( self . trajectory ) * dt / N_SECONDS_PER_HOUR ) return self
Updates the total mean speed of the trajectory
from the total distance travelled.
Updates the total mean speed of the trajectory from the total distance travelled .
"""Updates the total mean speed of the trajectory
        from the total distance travelled.

        Args:
            dt (float): time step during the simulation (s)
        """ # km/h
self
dt
time step during the simulation (s)
time step during the simulation ( s )