The antenna directivity is equal to the gain of the same antenna in case it was ideal. How to calculate and more information is described in this video