An optimal transport approach for selecting a representative subsample with application in efficient kernel density estimation