package pl.edu.icm.yadda.analysis.classification.features;

import java.util.Set;

/**
 * Feature vector interface.
 *
 * @author Dominika Tkaczyk (d.tkaczyk@icm.edu.pl)
 */
public interface FeatureVector {

    /**
     * Returns a single feature value.
     *
     * @param name The name of a single feature.
     * @return Feature value.
     */
    double getFeature(String name);

    /**
     * Adds a feature value to the vector.
     *
     * @param name Feature name.
     * @param featureValue Feature value.
     */
    void addFeature(String name, double featureValue);

    /**
     * Return a set of used feature names.
     * 
     * @return feature names set
     */
    Set<String> getFeatureNames();
}

@@ -572,24 +572,179 @@
 ureValue);%0A%0A
+    /**%0A     * Dumps content of a feature vector to a string%0A     * @return string of feature values in a human readable form %0A     */%0A    String dump();%0A%0A
     /**%0A    

Add dump method to FeatureVector interface