The Role of Nonparametric Inference in Computational Models of Categorization and Analogy