Free cookie consent management tool by TermsFeed Policy Generator

Changes between Version 2 and Version 4 of Ticket #1496


Ignore:
Timestamp:
04/29/11 14:58:29 (11 years ago)
Author:
abeham
Comment:

r6081

  • Implemented GeneralizedRankSelector

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1496

    • Property Status changed from assigned to accepted
  • Ticket #1496 – Description

    v2 v4  
    99{{{
    1010#!c
    11 int randomNumber = 1 + rand() * (pow(m, 1.0 / pressure) - 1);
     11double randomNumber = 1 + rand() * (pow(m, 1.0 / pressure) - 1);
    1212int selectedIndex = floor(pow(randomNumber, pressure) - 1);
    1313}}}