1. A method for vector encoding a data source, the method comprising: taking an observation of the data source; estimating the probability density function from the data observation; determining codepoints for vector encoding the data source based upon the estimated probability density function from the data source.