Closed form evaluation of the antenna directivity via sampling expansion