public void increment(int position,double weight){
  leftLabelWeights[position]+=weight;
  rightLabelWeights[position]-=weight;
  leftWeight+=weight;
  rightWeight-=weight;
}

public void increment ( int position , double weight ) { leftLabelWeights [ position ] += weight ; rightLabelWeights [ position ] -= weight ; leftWeight += weight ; rightWeight -= weight ; }
increments the left label weights at the given position by the given weight and decrements the right label weights . updates the sum of all left and right label weights respectively .
