Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 303e0f8

Browse files
committed
corrected to double
1 parent 69180f0 commit 303e0f8

File tree

1 file changed

+1
-1
lines changed
  • cc/modules/machinelearning

1 file changed

+1
-1
lines changed

cc/modules/machinelearning/SVM.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ NAN_METHOD(SVM::GetDecisionFunction) {
150150
FF_OBJ alpha = FF_NEW_INSTANCE(Mat::constructor);
151151
FF_OBJ svidx = FF_NEW_INSTANCE(Mat::constructor);
152152
FF_ARG_INT(0, int i);
153-
float rho = FF_UNWRAP(info.This(), SVM)->svm->getDecisionFunction(i, FF_UNWRAP_MAT_AND_GET(alpha), FF_UNWRAP_MAT_AND_GET(svidx));
153+
double rho = FF_UNWRAP(info.This(), SVM)->svm->getDecisionFunction(i, FF_UNWRAP_MAT_AND_GET(alpha), FF_UNWRAP_MAT_AND_GET(svidx));
154154

155155
FF_OBJ ret = FF_NEW_OBJ();
156156
Nan::Set(ret, FF_NEW_STRING("rho"), Nan::New((double)rho));

0 commit comments

Comments
 (0)