def __init__(self, frequencies, rcomplex=None, ccomplex=None):
if rcomplex is None and ccomplex is None:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>if rcomplex is not None and ccomplex is not None:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>self.frequencies = frequencies<EOL>if rcomplex is not None:<EOL><INDENT>self.rcomplex = rcomplex<EOL>self.ccomplex = SC.convert('<STR_LIT>', '<STR_LIT>', rcomplex)<EOL><DEDENT>elif ccomplex is not None:<EOL><INDENT>self.ccomplex = ccomplex<EOL>self.rcomplex = SC.convert('<STR_LIT>', '<STR_LIT>', ccomplex)<EOL><DEDENT>self.rmag = np.abs(self.rcomplex)<EOL>self.rpha = np.arctan2(<EOL>np.imag(self.rcomplex),<EOL>np.real(self.rcomplex)<EOL>) * <NUM_LIT:1000><EOL>self.cmag = np.abs(self.ccomplex)<EOL>self.cpha = np.arctan2(<EOL>np.imag(self.ccomplex),<EOL>np.real(self.ccomplex)<EOL>) * <NUM_LIT:1000><EOL>self.rmag_rpha = np.vstack((self.rmag, self.rpha)).T<EOL>self.cmag_cpha = np.vstack((self.cmag, self.cpha)).T<EOL>self.rre = np.real(self.rcomplex)<EOL>self.rim = np.imag(self.rcomplex)<EOL>self.cre = np.real(self.ccomplex)<EOL>self.cim = np.imag(self.ccomplex)<EOL>self.rre_rim = np.vstack((self.rre, self.rim)).T<EOL>self.cre_cim = np.vstack((self.cre, self.cim)).T<EOL>
Parameters
----------
frequencies: :class:`numpy.ndarray`
    Array of size N containing N frequencies in ascending order
rcomplex: :class:`numpy.ndarray`, optional
    Complex values resistance/resistivity values (size N)
ccomplex: :class:`numpy.ndarray`, optional
    Complex values conductance/conductivity values (size N)