You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: test_svm_PCA.m
    path of file: ./repos/HOG-Pedestrian-Detector
    
    the code of the file until where you have to start completion: function statistics = test_svm_PCA(model,Ureduce, paths)
% TEST_SVM_PCA Tests a (lib)SVM classifier from the specified images paths
%               reducing first each hog matrix to a dimensionality reduced
%  
    
function to know how the windows indices...
function [level, num_window] = get_window_indices(wxl, w_linear_index)
    accum_windows = 0;
    for i=1:size(wxl,2)
        accum_windows = accum_windows + wxl(i);
        if w_linear_index <= accum_windows
           level = i;
           num_window = accum_windows - w_linear_index;
           break 
        end