public static HashMap<String, Map<Integer, Double>> getTagsDescriptorMap( String[] allTags, Vector<Map<Integer, Double>> mTagAverageDescriptor) { HashMap<String, Map<Integer, Double>> tagsDescriptorMap = Create.hashMap(); for (int i = 0; i < allTags.length; i++) { /** * HashMap for <tag, tag descriptor map>** */ tagsDescriptorMap.put(allTags[i], mTagAverageDescriptor.elementAt(i)); } return tagsDescriptorMap; }
public static HashMap<String, double[]> getTagsHistogramMap( String[] allTags, double[][] mTagAverageHistogram) { HashMap<String, double[]> tagsHistogramMap = Create.hashMap(); for (int i = 0; i < allTags.length; i++) { /** * HashMap for <tag, tag histogram>** */ tagsHistogramMap.put(allTags[i], mTagAverageHistogram[i]); } return tagsHistogramMap; }