code: public double getExpectationAt(int index){
  		if(index <0 || index>=expectations.getObservationCount())
  			throw new IndexOutOfBoundsException();
  		return expectations.getValueAt(index);
  	}
docs: Returns the expectation for a certain insertion step specified by the given index.
  @param index Index of the desired insertion step
  @return The expectation for the specified insertion step