compute ksdensity on log transformed data