can be used for classification or regression (interpolation). Common way to assign weights to neighbors is by inverse distance metric.