1. A method for determining a result of a function applied to a first vector and a second vector, wherein the function is a normalized sum-type function, wherein the first vector is stored at a first processor and the second vector is stored at a second processor, comprising the steps of: determining a joint empirical probability distribution (JEPD) of the first vector and the second vector using a secure multi-party computation (SMPC); and determining the result of the function as a normalized summation of products of values of the JEPD with corresponding values of the function, wherein the steps of the method are performed by at least the first processor and the second processors.