Added versions of resampleWithWeights() methods that can be used to represent copies of instances using weights rather than explicitly. Added option in bagging to enable use of this functionality if base learner is a WeightedInstancesHandler. (Note that for the default base learner, REPTree with pruning, this will change the result, because of the splitting into growing and pruning set, which does not take weights into account.) Changed RandomForest to exploit this functionality, as RandomTree is a WeightedInstancesHandler. The idea for this was shamelessly stolen from FastRandomForest, which, I think, is nevertheless still faster. :-)

git-svn-id: https://svn.cms.waikato.ac.nz/svn/weka/trunk@10039 e0a1b77d-ad91-4216-81b1-defd5f83fa92
Updated javadoc

git-svn-id: https://svn.cms.waikato.ac.nz/svn/weka/trunk@10040 e0a1b77d-ad91-4216-81b1-defd5f83fa92
Merge remote-tracking branch 'upstream'