wsnsim/auxiliary_functions.py
def find_index_of_delay(sample: float, delay_vector: list) -> int:
    """Returns the corresponding index for a new sample of the delay pdf."""
    for index, delay_value in enumerate(delay_vector):
        if sample <= delay_value:
            return index
Returns the corresponding index for a new sample of the delay pdf.
Returns the corresponding index for a new sample of the delay pdf.
Returns the corresponding index for a new sample of the delay pdf .
def find_index_of_delay(sample: float, delay_vector: list) -> int:
    for index, delay_value in enumerate(delay_vector):
        if sample <= delay_value:
            return index
def find_index_of_delay ( sample : float , delay_vector : list ) -> int : for index , delay_value in enumerate ( delay_vector ) : if sample <= delay_value : return index
Returns the corresponding index for a new sample of the delay pdf.
Returns the corresponding index for a new sample of the delay pdf .
"""Returns the corresponding index for a new sample of the delay pdf."""
sample
float
delay_vector
list