| 1445 | |
| 1446 | public: |
| 1447 | SVC_Q(const svm_problem& prob, const svm_parameter& param, const schar* y_) |
| 1448 | : Kernel(prob.l, prob.x, param) |
| 1449 | { |
| 1450 | clone(y, y_, prob.l); |
| 1451 | cache = new Cache(prob.l, static_cast<long int>(param.cache_size * (1 << 20))); |
| 1452 | QD = new double[prob.l]; |
| 1453 | |
| 1454 | for (int i = 0; i < prob.l; i++) |
| 1455 | QD[i] = (this->*kernel_function)(i, i); |
| 1456 | } |
| 1457 | |
| 1458 | Qfloat* |
| 1459 | get_Q(int i, int len) const override |