I am supposed to define a function that can take pdf function as input and return a CDF function (if the input is a vector, then return empirical CDF). It is required that I