A function to compute the closest data in subset of data to the original data based on two attributes: vector and scalar (vector of size one).
compute_closest_wgps(a, b, c, d, sc, nthread)The function returns index of subset data that is closest to the original data sample.
Vector of the first attribute values for subset of data.
Vector of the first attribute values for all data.
Vector of the second attribute values for subset of data.
Vector of size one for the second attribute value.
Scale parameter to give weight for two mentioned measurements.
Number of available cores.