Changeset 24 for bidspace/src/main/java
- Timestamp:
- 10/06/20 13:12:20 (4 years ago)
- Location:
- bidspace/src/main/java/geniusweb/bidspace
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
bidspace/src/main/java/geniusweb/bidspace/AllBidsList.java
r1 r24 26 26 27 27 /** 28 * A list containing all bids in the space. This is an ImmutableList so it 29 * can contain all bids without pre-computing them. 28 * This object contains s list containing all bids in the space. This is an 29 * ImmutableList so it can contain all bids without pre-computing them. 30 * 31 * @param domain the {@link Domain} 30 32 * 31 33 */ -
bidspace/src/main/java/geniusweb/bidspace/AllPartialBidsList.java
r1 r24 32 32 * pre-computing them. 33 33 * 34 * @param domain the {@link Domain} 34 35 */ 35 36 public AllPartialBidsList(Domain domain) { -
bidspace/src/main/java/geniusweb/bidspace/BidsWithUtility.java
r10 r24 43 43 * Default constructor, uses default precision 6. This value seems practical 44 44 * for the common range of issues, utilities and weights. See 45 * {@link #BidsWithUtil (LinearAdditive, int)} for more details on the45 * {@link #BidsWithUtility(LinearAdditive, int)} for more details on the 46 46 * precision. 47 47 * … … 73 73 * digits should be feasible; for 9 issues, 6 digits may be 74 74 * the maximum. 75 * <p>76 *77 75 */ 78 76 public BidsWithUtility(LinearAdditive space, int precision) { … … 138 136 * utilities in given range. 139 137 * 140 * @param n the number of {@link #issueRanges} to consider, we consider141 * 0..n here.The recursion decreases n until n=0138 * @param n the number of issueRanges to consider, we consider 0..n here. 139 * The recursion decreases n until n=0 142 140 * @param goal the minimum and maximum utility required of the bids. to be 143 141 * included (both ends inclusive) -
bidspace/src/main/java/geniusweb/bidspace/Interval.java
r10 r24 16 16 17 17 /** 18 * AN interval [min,max]. If min >max, then there are no values in this18 * AN interval [min,max]. If min > max, then there are no values in this 19 19 * interval. 20 20 * 21 * @param min 22 * @param max 21 * @param min the minimum value of the interval 22 * @param max the maximum value of the interval 23 23 */ 24 24 public Interval(BigDecimal min, BigDecimal max) { … … 49 49 * 50 50 * @param value the value to test 51 * @return true iff min <=value<=max51 * @return true iff min ≤ value ≤ max 52 52 */ 53 53 public boolean contains(BigDecimal value) { … … 66 66 /** 67 67 * 68 * @param minMax another minMax to intersect with 69 * @return intersection with other. returns null if intersection is empty. 68 * @param other another {@link Interval} intersect with 69 * @return intersection of this with other. returns null if intersection is 70 * empty. 70 71 */ 71 72 public Interval intersect(Interval other) { -
bidspace/src/main/java/geniusweb/bidspace/IssueInfo.java
r10 r24 26 26 private final Map<Value, BigDecimal> weightedUtils; 27 27 28 /** 29 * 30 * @param name the issue name 31 * @param values the {@link ValueSet} of the issue 32 * @param utils the {@link ValueSetUtilities} of the issue profile 33 * @param weight the weight of the {@link ValueSetUtilities} 34 * @param precision the precision to compute with. Basically the number of 35 * decimal places used for the computations. 36 * 37 */ 28 38 public IssueInfo(String name, ValueSet values, ValueSetUtilities utils, 29 39 BigDecimal weight, int precision) { … … 45 55 * 46 56 * @return weighted minimum and maximum utility achievable with this issue, 47 * rounded to the {@link #precision}.57 * rounded to the requested precision. 48 58 */ 49 59 public Interval getInterval() { … … 53 63 /** 54 64 * 55 * @param isMax 65 * @param isMax if true the max {@link Value} is returned, else the min is 66 * returned. 56 67 * @return the extreme value, either the minimum if isMax=false or maximum 57 68 * if isMax=true … … 86 97 * @param val the issue value to be evaluated 87 98 * @return weighted utility of given value, rounded to nearest value with 88 * {@link #precision}digits.99 * the requested precision number of digits. 89 100 */ 90 101 public BigDecimal getWeightedUtil(Value val) {
Note:
See TracChangeset
for help on using the changeset viewer.