[probMatrix] = calcReProbs(A,B, distrib, inputsDistrib, sameDistrib) % calculate the probability matrix as per Re % Inputs % A: feature vector in class1 % B: feature vector in class2 % distrib: A's distribution % inputsDistrib: input parameters to A's distribution % sameDistrib: 1 if A and B are in the same class, 0 if in diff classes. % probMatrix is a n*m matrix where n = number of possible values % m = number of features % assuming binary case so n=2 always % m= dimension of A/B %