src/PredFinder/common/ElfMultiDoc.cpp
/**
 * Create a new XDoc ID based on the original XDoc ID of the cluster, the split index
 * (a non-negative number, usually single-digit), and the maximum XDoc ID read in from
 * the file.
 * @param orig_xdoc_id Numeric representation of XDoc ID.
 * @param split_index A non-negative number, usually single-digit.
 * @return Numeric representation of new XDoc ID.
 **/
Create a new XDoc ID based on the original XDoc ID of the cluster, the split index
(a non-negative number, usually single-digit), and the maximum XDoc ID read in from
the file.
@param orig_xdoc_id Numeric representation of XDoc ID.
@param split_index A non-negative number, usually single-digit.
@return Numeric representation of new XDoc ID.
Create a new XDoc ID based on the original XDoc ID of the cluster the split index ( a non - negative number usually single - digit ) and the maximum XDoc ID read in from the file . @param orig_xdoc_id Numeric representation of XDoc ID . @param split_index A non - negative number usually single - digit . @return Numeric representation of new XDoc ID .
int ElfMultiDoc::new_xdoc_id_from_split_index(int orig_xdoc_id, int split_index) {
	int new_xdoc_id = ((_max_xdoc_id_in_file + 1) * (split_index + 1)) + orig_xdoc_id;
	return new_xdoc_id;
}
int ElfMultiDoc :: new_xdoc_id_from_split_index ( int orig_xdoc_id , int split_index ) { int new_xdoc_id = ( ( _max_xdoc_id_in_file + 1 ) * ( split_index + 1 ) ) + orig_xdoc_id ; return new_xdoc_id ; }
Create a new XDoc ID based on the original XDoc ID of the cluster, the split index
 (a non-negative number, usually single-digit), and the maximum XDoc ID read in from
 the file.
Create a new XDoc ID based on the original XDoc ID of the cluster the split index ( a non - negative number usually single - digit ) and the maximum XDoc ID read in from the file .
// The advantage of the formula above (suggested by nward) is that if _max_xdoc_id_in_file is known, calculations 
 // can be performed on the output (new_xdoc_id) to determine the original XDoc ID and split index:
 //		orig_xdoc_id = new_xdoc_id % (_max_xdoc_id_in_file + 1)
 //		split_index = ((new_xdoc_id - orig_xdoc_id)/(_max_xdoc_id_in_file + 1)) - 1
 //SessionLogger::info("LEARNIT") << "new_xdoc_id: " << new_xdoc_id << " = ("
 //	<< _max_xdoc_id_in_file << " + 1) * (" << split_index << " + 1)) + " << orig_xdoc_id;
