On pattern classification with weighted dimensions