/** * Returns the probabilities associated with all labels * * @return the HashMap of labels and their probabilities */ public Map<T, Double> getAll() { return normalize(); }
/** * Returns the probability associated with a label * * @param t the label whose probability needs to be returned * @return the probability associated with the label */ public Double get(T t) { Double d = normalize().get(t); if (d == null) return 0.0; return d; }
/** * Returns the probabilities associated with all labels * * @return the HashMap of labels and their probabilities */ public Map<T, Double> getAll() { return normalize(); }
/** * Returns the probabilities associated with all labels * * @return the HashMap of labels and their probabilities */ public Map<T, Double> getAll() { return normalize(); }
/** * Returns the probability associated with a label * * @param t the label whose probability needs to be returned * @return the probability associated with the label */ public Double get(T t) { Double d = normalize().get(t); if (d == null) return 0.0; return d; }
/** * Returns the probability associated with a label * * @param t the label whose probability needs to be returned * @return the probability associated with the label */ public Double get(T t) { Double d = normalize().get(t); if (d == null) return 0.0; return d; }