% DEMO 
% This is an examplar file on how the PLENL program could be used 
% The main function is "PLENL_train.m" and "PLENL_predict.m"
%
%
% Copyright: Xiangru Yu (yuxr@seu.edu.cn),
%            Min-Ling Zhang (mlzhang@seu.edu.cn)
% 			 School of Cyber Science and Engineering, Southeast University, Nanjing 211189, China
% 			 

% Loading the file containing the necessary inputs for calling the PALOC function
addpath(['libsvm-3.23' filesep, 'windows']);

load 'sample data'

M = 250;
alpha = 0.9;
k = 10; 
% build detector
detector = [];
options_osvm = '-s 2 -t 2'; 
detector =  PLENL_train(stream_data{1,1},stream_data{1,5}((stream_data{1,4})',:),options_osvm);
accuracy = PLENL_predict(detector,stream_data,k,alpha,M,options_osvm);
