public LogProbability(T label) { super(label); set(1.0); }
/** * 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) { setLog(this.probability + Math.log(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) { setLog(this.probability + Math.log(probability)); }
public LogProbability(T label) { super(label); set(1.0); }
/** * 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) { setLog(this.probability + Math.log(probability)); }
public LogProbability(T label) { super(label); set(1.0); }