code: @Override
  	public void updateStatistics(Instance inst) {
  		// Update the statistics for this node
  		// number of instances passing through the node
  		nodeStatistics.addToValue(0, 1);
  		// sum of y values
  		nodeStatistics.addToValue(1, inst.classValue());
  		// sum of squared y values
  		nodeStatistics.addToValue(2, inst.classValue()*inst.classValue());
  				
  		this.perceptron.trainOnInstance(inst);
  		if (this.predictionFunction != 1) { //Train target mean if prediction function is not Perceptron
  			this.targetMean.trainOnInstance(inst);
  		}
  	}
docs: /*
  Update with input instance