def apply_LLD(spectrum, LLD=10):
    """
    Applies a low level discriminator (LLD) to a channel.

    Parameters:
    -----------
        spectrum : vector
            The spectrum
        LLD : int
            The channel where the low level discriminator is applied
    Returns:
    --------
        spectrum : vector
            The spectrum with channels in the LLD set to 0
    """
    spectrum[0:LLD] = 0
    return spectrum