generalized BayesianQuantizationDistance