1. A method of generating a weight function for attaching a predetermined characteristic to an input signal in time domain, the method comprising: transforming the time domain into the frequency domain before using the weight function; multiplying the weight function by a window function in frequency domain; and transforming the frequency domain to the time domain.