code: public void loadProductQuantizer(String filename) throws Exception {
  		productQuantizer = new double[numSubVectors][numProductCentroids][subVectorLength];
  		BufferedReader in = new BufferedReader(new FileReader(new File(filename)));
  		for (int i = 0; i < numSubVectors; i++) {
  			for (int j = 0; j < numProductCentroids; j++) {
  				String line = in.readLine();
  				String[] centroidString = line.split(",");
  				for (int k = 0; k < subVectorLength; k++) {
  					productQuantizer[i][j][k] = Double.parseDouble(centroidString[k]);
  				}
  			}
  		}
  		in.close();
  	}
docs: Load the product quantizer from the given file.
  
  @param filename
  Full path to the file containing the product quantizer
  @throws Exception