Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7828 for trunk/sources


Ignore:
Timestamp:
05/15/12 16:07:52 (13 years ago)
Author:
abeham
Message:

#1848: fixed a bug in SampleProportional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Random/3.3/RandomEnumerable.cs

    r7812 r7828  
    225225      } else {
    226226        if (windowing) {
    227           if (inverseProportional) InverseProportionalScale(valueArray, minValue);
    228           else ProportionalScale(valueArray, maxValue);
     227          if (inverseProportional) InverseProportionalScale(valueArray, maxValue);
     228          else ProportionalScale(valueArray, minValue);
    229229        } else {
    230230          if (minValue < 0.0) throw new InvalidOperationException("Proportional selection without windowing does not work with values < 0.");
Note: See TracChangeset for help on using the changeset viewer.