(signal, coeff=0.95)
return numpy.append(signal[0], signal[1:] - coeff * signal[:-1])
perform preemphasis on the input signal.

    :param signal: The signal to filter.
    :param coeff: The preemphasis coefficient. 0 is no filter, default is 0.95.
    :returns: the filtered signal.
perform preemphasis on the input signal.
perform preemphasis on the input signal .
def preemphasis(signal, coeff=0.95):
  """perform preemphasis on the input signal.

    :param signal: The signal to filter.
    :param coeff: The preemphasis coefficient. 0 is no filter, default is 0.95.
    :returns: the filtered signal.
    """
  return numpy.append(signal[0], signal[1:] - coeff * signal[:-1])
def preemphasis ( signal , coeff = 0.95 ) : return numpy . append ( signal [ 0 ] , signal [ 1 : ] - coeff * signal [ : - 1 ] )