function v = haar_1d_two_level ( n )
	n = length(u);

	w = haar_1d(n,u);
	k = round(n/2);
	w_scaling = w(1:k);
	w_detail = w(k+1:end);
	w_scaling_transformed = haar_1d(k,w_scaling);
	v = [w_scaling_transformed; w_detail];
end

