Local Variance Estimation for Uncensored and Censored