public void addFeature(IFeatureVector fv,int offset){
  for (int i=0; i < fv.getNumActiveFeatures(); i++) {
    idxList.add(fv.getIdx(i) + offset);
  }
  valList.addAll(Floats.asList(fv.getValues()));
}

public void addFeature ( IFeatureVector fv , int offset ) { for ( int i = 0 ; i < fv . getNumActiveFeatures ( ) ; i ++ ) { idxList . add ( fv . getIdx ( i ) + offset ) ; } valList . addAll ( Floats . asList ( fv . getValues ( ) ) ) ; }
currentvector = currentvector + shift ( fv , offset ) , where shift ( fv , offset ) shifts fv by offset .
