1. Method for the Tomography of the Primary Electric Current (TPEC) of the brain (TPECc) and of the heart (TPECk) characterized as comprising the following operations: Pre-processing of the signals recorded from the subject for the elimination of artifacts and of non-physiological frequency components of, Conversion of the coordinates of the sensors to the reference system of the head or torso by means of the application of a visco-elastic deformation, in the most general case nonlinear, that puts into correspondence the coordinates of the external anatomical markers of the subject with those of the structural image stored in the CU; Calculation of the electric Kernel and magnetic Kernel linear operators that predict the o(t) that would be produced in the subject by the presence of the PEC j(t) in any part of the brain or heart; Calculation of the TPEC by means of Bayesian Hierarchical Estimation Procedure that determines the primary electric current j(t) of the brain and heart using the structural a priori information obtained from an anatomical atlas, the metabolic a priori information obtained from functional images and the assumption that the solution belongs to a space of Besov space of given smoothness or determined by a norm in a Megadictionary; Calculation of descriptive parameters either on the basis of the observations o(t) directly, or of the j(t); Calculation of the probability that all or some of the DP are similar to those of a given test group; and The obtained TPECc is coded by means of a pseudocolor scale and is overlaid on the anatomical atlas, the scale is fitted according to the probability previously calculated in such a way that only statistically significant anatomical sites are highlighted.