as_kde function

Convert data frame or matrix object to kde class