protected Classifier addToStored(Classifier newClassifier, double newClassifiersWeight) {
		Classifier addedClassifier = null;
		Classifier[] newStored = new Classifier[this.learners.length + 1];
		double[][] newStoredWeights = new double[newStored.length][2];

		for (int i = 0; i < newStored.length; i++) {
			if (i < this.learners.length) {
				newStored[i] = this.learners[i];
				newStoredWeights[i][0] = this.weights[i][0];
				newStoredWeights[i][1] = this.weights[i][1];
			} else {
				newStored[i] = addedClassifier = newClassifier.copy();
				newStoredWeights[i][0] = newClassifiersWeight;
				newStoredWeights[i][1] = i;
			}
		}
		this.learners = newStored;
		this.weights = newStoredWeights;

		return addedClassifier;
	}
protected Classifier addToStored ( Classifier newClassifier , double newClassifiersWeight ) { Classifier addedClassifier = null ; Classifier [ ] newStored = new Classifier [ this . learners . length + 1 ] ; double [ ] [ ] newStoredWeights = new double [ newStored . length ] [ 2 ] ; for ( int i = 0 ; i < newStored . length ; i ++ ) { if ( i < this . learners . length ) { newStored [ i ] = this . learners [ i ] ; newStoredWeights [ i ] [ 0 ] = this . weights [ i ] [ 0 ] ; newStoredWeights [ i ] [ 1 ] = this . weights [ i ] [ 1 ] ; } else { newStored [ i ] = addedClassifier = newClassifier . copy ( ) ; newStoredWeights [ i ] [ 0 ] = newClassifiersWeight ; newStoredWeights [ i ] [ 1 ] = i ; } } this . learners = newStored ; this . weights = newStoredWeights ; return addedClassifier ; }
Adds a classifier to the storage.

@param newClassifier
The classifier to add.
@param newClassifiersWeight
The new classifiers weight.