Kernel Estimators of the Failure-Rate Function and Density Estimation: An Analogy