29 lines
688 B
Matlab
29 lines
688 B
Matlab
function [ success ] = write_lin_dyn_svm( location, means, w, b, pos_lbl, neg_lbl)
|
|
%WRITE_LIN_SVR Summary of this function goes here
|
|
% Detailed explanation goes here
|
|
|
|
fileID = fopen(location, 'w');
|
|
|
|
if(fileID ~= -1)
|
|
|
|
% Write the regressor type 5 - linear dynamic SVM
|
|
fwrite(fileID, 5, 'uint');
|
|
|
|
writeMatrixBin(fileID, means, 6);
|
|
writeMatrixBin(fileID, w, 6);
|
|
fwrite(fileID, b, 'float64');
|
|
|
|
fwrite(fileID, pos_lbl, 'float64');
|
|
fwrite(fileID, neg_lbl, 'float64');
|
|
|
|
fclose(fileID);
|
|
|
|
success = true;
|
|
|
|
else
|
|
success = false;
|
|
end
|
|
|
|
end
|
|
|