/** * Adds a new example of the given value with the given weight. * * @param value * The value to add. * @param weight * The weight for the value. */ public void add( final InputType value, final double weight) { this.examples.add(DefaultWeightedValue.create(value, weight)); }
/** * Adds a new example of the given value with the given weight. * * @param value * The value to add. * @param weight * The weight for the value. */ public void add( final InputType value, final double weight) { this.examples.add(DefaultWeightedValue.create(value, weight)); }
/** * Adds a new example of the given value with the given weight. * * @param value * The value to add. * @param weight * The weight for the value. */ public void add( final InputType value, final double weight) { this.examples.add(DefaultWeightedValue.create(value, weight)); }
/** * Adds the given categorizer with a given weight. * * @param member The categorizer to add. * @param weight The weight for the new member. */ public void add( final MemberType member, final double weight) { ArgumentChecker.assertIsNotNull("member", member); final WeightedValue<MemberType> weighted = DefaultWeightedValue.create(member, weight); this.getMembers().add(weighted); }
/** * Adds the given categorizer with a given weight. * * @param member The categorizer to add. * @param weight The weight for the new member. */ public void add( final MemberType member, final double weight) { ArgumentChecker.assertIsNotNull("member", member); final WeightedValue<MemberType> weighted = DefaultWeightedValue.create(member, weight); this.getMembers().add(weighted); }
/** * Adds the given categorizer with a given weight. * * @param member The categorizer to add. * @param weight The weight for the new member. */ public void add( final MemberType member, final double weight) { ArgumentChecker.assertIsNotNull("member", member); final WeightedValue<MemberType> weighted = DefaultWeightedValue.create(member, weight); this.getMembers().add(weighted); }
if (difference >= 0.0 && !actual.equals(category)) errors.add(DefaultWeightedValue.create(category, difference)); differenceSum += difference;
if (difference >= 0.0 && !actual.equals(category)) errors.add(DefaultWeightedValue.create(category, difference)); differenceSum += difference;
if (difference >= 0.0 && !actual.equals(category)) errors.add(DefaultWeightedValue.create(category, difference)); differenceSum += difference;