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: cond_mutual_info_score.m
    path of file: ./repos/bnt/SLP/scoring
    
    the code of the file until where you have to start completion: function score = cond_mutual_info_score(i,si,j,sj,c,sc,data)
% G = cond_mutual_info_score(i,si,j,sj,c,sc,data)
% Only for tabular node which values are 1,2,...,size .
% si is size of node i, sj is size of node j, sc is the size of node c.
% data(i,m) is the node i in the case m.
% 
%
% pphilippe.leray@univ-nantes.fr, francois.olivier.c.h@gmail.com

[n N]=size(data);
Pc=hist(data(c,:),1:sc)/N;
score=0;

for cvalue=1:sc,
    ind=find(data(c,:)==cvalue);
    Nj=hist(data(j,ind),1:sj);

    
function score = cond_mutual_info_score(i,si,j,sj,c,sc,data)
% G = cond_mutual_info_score(i,si,j,sj,c,sc,data)
% Only for tabular node which values are 1,2,...,size .
% si is size of node i, sj is size of node j, sc is the size of node c.
% data(i,m) is the node i in the case m.
% 
%
% pphilippe.leray@univ-nantes.fr, francois.olivier.c.h@gmail.com

[n N]=size(data);
Pc=hist(data(c,:),1:sc)/N;
score=0;

for cvalue=1:sc,
    ind=find(data(c,:)==cvalue);
    Nj=hist(data(j,ind),1:sj);
    Ni=hist(data(i,ind),1:si);
    NiNj=Ni'*Nj;

    for k=1:si
        ind2=find(data(i,ind)==k) ;
        Nij(k,:) = hist(data(j,ind(ind2)),1:sj);
    end