Skip to content

Commit 19d2d1e

Browse files
committed
woops, last one was too fast
1 parent 944d989 commit 19d2d1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rv_eval.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ double rveval::log_inv_logit(const double& r)
5252
}
5353

5454

55-
unsigned int sf::nChoosek( unsigned int n, unsigned int k )
55+
unsigned int rveval::nChooseK( unsigned int n, unsigned int k )
5656
{
5757
if (k > n) return 0;
58-
if (k * 2 > n) /*return*/ k = n-k; //remove the commented section
59-
if (k == 0) return 1;
58+
if (k * 2 > n) /*return*/ k = n-k; //remove the commented section
59+
if (k == 0) return 1;
6060

6161
int result = n;
6262
for( int i = 2; i <= k; ++i ) {

0 commit comments

Comments
 (0)