/** * Sets the number of documents in the collection. * @param numOfDocs the number of documents in the collection. */ public void setNumberOfDocuments(double numOfDocs) { this.numberOfDocuments = numOfDocs; this.i.setNumberOfDocuments(numOfDocs); }
/** * Sets the number of documents in the collection. * @param numOfDocs the number of documents in the collection. */ public void setNumberOfDocuments(double numOfDocs) { this.numberOfDocuments = numOfDocs; this.i.setNumberOfDocuments(numOfDocs); }
/** * prepare */ public void prepare() { averageDocumentLength = cs.getAverageDocumentLength(); numberOfDocuments = (double)cs.getNumberOfDocuments(); i.setNumberOfDocuments(numberOfDocuments); numberOfTokens = (double)cs.getNumberOfTokens(); numberOfUniqueTerms = (double)cs.getNumberOfUniqueTerms(); numberOfPointers = (double)cs.getNumberOfPointers(); documentFrequency = (double)getOverflowed(es.getDocumentFrequency()); termFrequency = (double)getOverflowed(es.getFrequency()); }
/** * prepare */ public void prepare() { averageDocumentLength = cs.getAverageDocumentLength(); numberOfDocuments = (double)cs.getNumberOfDocuments(); i.setNumberOfDocuments(numberOfDocuments); numberOfTokens = (double)cs.getNumberOfTokens(); numberOfUniqueTerms = (double)cs.getNumberOfUniqueTerms(); numberOfPointers = (double)cs.getNumberOfPointers(); documentFrequency = (double)getOverflowed(es.getDocumentFrequency()); termFrequency = (double)getOverflowed(es.getFrequency()); }
@Override public void setCollectionStatistics(CollectionStatistics _cs) { super.setCollectionStatistics(_cs); this.basicModel.setNumberOfDocuments(_cs.getNumberOfDocuments()); this.basicModel.setNumberOfTokens(_cs.getNumberOfTokens()); this.afterEffect.setAverageDocumentLength(_cs.getAverageDocumentLength()); this.normalisation.setNumberOfDocuments(_cs.getNumberOfDocuments()); this.normalisation.setNumberOfTokens(_cs.getNumberOfTokens()); this.normalisation.setAverageDocumentLength(_cs.getAverageDocumentLength()); this.i.setNumberOfDocuments(_cs.getNumberOfDocuments()); }
@Override public void setCollectionStatistics(CollectionStatistics _cs) { super.setCollectionStatistics(_cs); this.basicModel.setNumberOfDocuments(_cs.getNumberOfDocuments()); this.basicModel.setNumberOfTokens(_cs.getNumberOfTokens()); this.afterEffect.setAverageDocumentLength(_cs.getAverageDocumentLength()); this.normalisation.setNumberOfDocuments(_cs.getNumberOfDocuments()); this.normalisation.setNumberOfTokens(_cs.getNumberOfTokens()); this.normalisation.setAverageDocumentLength(_cs.getAverageDocumentLength()); this.i.setNumberOfDocuments(_cs.getNumberOfDocuments()); }