add poisson regression

This commit is contained in:
tqchen
2015-05-04 10:48:25 -07:00
parent a310db86a1
commit 667a752e04
10 changed files with 144 additions and 24 deletions

View File

@@ -28,13 +28,13 @@ extern "C" {
void (*Check)(int exp, const char *fmt, ...) = XGBoostCheck_R;
void (*Error)(const char *fmt, ...) = error;
}
} // namespace utils
namespace wrapper {
bool CheckNAN(float v) {
bool CheckNAN(double v) {
return ISNAN(v);
}
} // namespace wrapper
bool LogGamma(double v) {
return lgammafn(v);
}
} // namespace utils
namespace random {
void Seed(unsigned seed) {

View File

@@ -8,6 +8,7 @@
extern "C" {
#include <Rinternals.h>
#include <R_ext/Random.h>
#include <Rmath.h>
}
extern "C" {