1. A method of generating basis functions for spectral reflectances of a plurality of color samples, the method comprising: inputting reflectance information of the color samples; weighting the reflectance information with a weighting function based on a wavelength dependence of a predetermined optical sensor; and analyzing the weighted reflectance information to obtain the basis functions.