Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void svm_destroy_model ( svm_model model  ) 

Definition at line 2630 of file svm.cpp.

References svm_model::free_sv, svm_model::label, svm_model::nr_class, svm_model::nSV, svm_model::probA, svm_model::probB, svm_model::rho, svm_model::SV, and svm_model::sv_coef.

Referenced by Impala::Core::Training::Svm::SetModel(), svm_binary_svc_probability(), svm_cross_validation(), and Impala::Core::Training::Svm::~Svm().

02631 {
02632         if(model->free_sv)
02633                 free((void *)(model->SV[0]));
02634         for(int i=0;i<model->nr_class-1;i++)
02635                 free(model->sv_coef[i]);
02636         free(model->SV);
02637         free(model->sv_coef);
02638         free(model->rho);
02639         free(model->label);
02640         free(model->probA);
02641         free(model->probB);
02642         free(model->nSV);
02643         free(model);
02644 }


Generated on Fri Mar 19 10:17:15 2010 for ImpalaSrc by  doxygen 1.5.1