public void setSparseFeature ( ConcatVector vector , String featureName , String index , double value ) { vector . setSparseComponent ( ensureFeature ( featureName ) , ensureSparseFeature ( featureName , index ) , value ) ; }
This adds a sparse feature to a vector setting the appropriate component of the given vector to the passed in value .