/** * Compounds the existing probability mass on the label with the new probability passed in to the method. * * @param probability the probability weight to add */ public void addIn(double probability) { set(this.probability * probability); }
/** * Assigns a log probability to a label, discarding any previously assigned probability. * * @param probability the log probability to assign */ public void setLog(double probability) { set(Math.exp(probability)); }
/** * Compounds the existing probability mass on the label with the new probability passed in to the method. * * @param probability the probability weight to add */ public void addIn(double probability) { set(this.probability * probability); }
/** * Compounds the existing probability mass on the label with the new probability passed in to the method. * * @param probability the probability weight to add */ public void addIn(double probability) { set(this.probability * probability); }
/** * Assigns a log probability to a label, discarding any previously assigned probability. * * @param probability the log probability to assign */ public void setLog(double probability) { set(Math.exp(probability)); }
/** * Assigns a log probability to a label, discarding any previously assigned probability. * * @param probability the log probability to assign */ public void setLog(double probability) { set(Math.exp(probability)); }