likehood function for hawkes process 1 . 2.when event happened when event didn't happened 3 For .likelihood(a) 4.