public double[] getVotesForInstanceOrig(Instance inst) {
        DoubleVector combinedVote = new DoubleVector();
        double[] ensembleVotes = new double[inst.numClasses()];
        double qbcEntropy = 0.0;
        int success = 0;

        for (int i = 0; i < this.ensemble.length; i++) {
            DoubleVector vote = new DoubleVector(this.ensemble[i]
                    .getVotesForInstance(inst));
            // This will call the HoeffdingTree's getVotesForInstance Function
            if (vote.sumOfValues() > 0.0) {
                vote.normalize();
                if ((this.useWeightOption != null)
                        && this.useWeightOption.isSet()) {
                    vote.scaleValues(1.0 / (this.error[i] * this.error[i]));
                    System.out.println("Ensemble : " + i + " Error: " + this.error[i]);
                }
                //
                //Ignore the ensembles which have high error ratio
                //
                if (this.error[i] < 0.3) {
                    combinedVote.addValues(vote);
                }
            }
            //
            // this is the votes of the ensembles for the classes
            //
            if (this.error[i] < 0.3) {
                success++;
                ensembleVotes[combinedVote.maxIndex()] += combinedVote.getValue(combinedVote.maxIndex());
            }
        }
        // For confidence measure add to the pool  and in order to fit the confidence value between 0 and 1 divide by success val

        if ((combinedVote.getValue(combinedVote.maxIndex()) / success) >= confidenceThreshold) {
            qbcEntropy = queryByCommitee(ensembleVotes, inst.numClasses(), 0);
            System.out.println("QBC Entropy: " + qbcEntropy);
            double activeLearningRatio = (qbcEntropy) + (combinedVote.getValue(combinedVote.maxIndex()) / this.ensemble.length);
            inst.setClassValue(combinedVote.maxIndex());
            instConfPool.addVotedInstance(inst, combinedVote
                    .getValue(combinedVote.maxIndex()), activeLearningRatio);
        }
        return combinedVote.getArrayRef();
    }