We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 944d989 commit 19d2d1eCopy full SHA for 19d2d1e
src/rv_eval.cpp
@@ -52,11 +52,11 @@ double rveval::log_inv_logit(const double& r)
52
}
53
54
55
-unsigned int sf::nChoosek( unsigned int n, unsigned int k )
+unsigned int rveval::nChooseK( unsigned int n, unsigned int k )
56
{
57
if (k > n) return 0;
58
- if (k * 2 > n) /*return*/ k = n-k; //remove the commented section
59
- if (k == 0) return 1;
+ if (k * 2 > n) /*return*/ k = n-k; //remove the commented section
+ if (k == 0) return 1;
60
61
int result = n;
62
for( int i = 2; i <= k; ++i ) {
0 commit comments