docs: @Override
  	public void trainOnInstanceImpl(Instance inst)
  	{
  		// If this is the first instance, then initialize the forest.
  		if(this.numInstances == 0)
  		{
  			this.buildForest(inst);
  		}
  		
  		// Update the mass profile of every HSTree in the forest
  		for(int i = 0 ; i < this.numTrees ; i++)
  		{
  			forest[i].updateMass(inst, referenceWindow);
  		}
  		
  		if(this.numInstances > 50)
  			referenceWindow = false;
  		
  		// If this is the last instance of the window, update every HSTree's model
  		if(this.numInstances % windowSize == 0)
  		{
  			for(int i = 0 ; i < this.numTrees ; i++)
  			{
  				forest[i].updateModel();
  			}
  		}
  		
  		this.numInstances++;
  	}