def generate_linear_plus_sin(x_points=None, tangent=<NUM_LIT>, add_term=<NUM_LIT:1.0>, noise_var=<NUM_LIT>,<EOL>sin_period=<NUM_LIT>, sin_ampl=<NUM_LIT>, plot = False, <EOL>points_num=<NUM_LIT:100>, x_interval = (<NUM_LIT:0>, <NUM_LIT:20>), random=True):
x_points, y_linear_points = generate_linear_data(x_points, tangent, add_term, noise_var,<EOL>False, points_num, x_interval, random)<EOL>x_points, y_sine_points = generate_sine_data(x_points, sin_period, sin_ampl, <NUM_LIT:0.0>,<EOL>False, points_num, x_interval, random)<EOL>y_points = y_linear_points + y_sine_points<EOL>if plot:<EOL><INDENT>pass<EOL><DEDENT>return x_points, y_points<EOL>
Generate the sum of linear trend and the sine function.

For parameters see the 'generate_linear' and 'generate_sine'.

Comment: Gaussian noise variance is added only once (for linear function).