parameters: (self, x, h, rho, d, epr, mur, quasistatic=False)
return_statement: return field
docstring: Calculate forward response.
docstring_summary: Calculate forward response.
docstring_tokens: Calculate forward response .
function: def calc_forward(self, x, h, rho, d, epr, mur, quasistatic=False):
          """Calculate forward response."""
          field = np.zeros((self.f.size, x.size), np.complex)
          # Forward calculation for background model
          if d.size:
              for m in range(x.size):
                  field[:, m] = self.vmd_hem(np.array([h[m]], np.float),
                                             rho[:, m], d[:, m], epr[:, m],
                                             mur[:, m], quasistatic).T[:, 0]
          # für jede Frequenz
          else:
              for n in range(self.f.size):
                  for m in range(x.size):
                      field[n, m] = self.vmd_hem(np.array([h[n, m]], np.float),
                                                 np.array([rho[n, m]], np.float),
                                                 d,
                                                 np.array([epr[n, m]], np.float),
                                                 np.array([mur[n, m]], np.float),
                                                 quasistatic).T[n, 0]
          return field
function_tokens: def calc_forward ( self , x , h , rho , d , epr , mur , quasistatic = False ) : field = np . zeros ( ( self . f . size , x . size ) , np . complex ) # Forward calculation for background model if d . size : for m in range ( x . size ) : field [ : , m ] = self . vmd_hem ( np . array ( [ h [ m ] ] , np . float ) , rho [ : , m ] , d [ : , m ] , epr [ : , m ] , mur [ : , m ] , quasistatic ) . T [ : , 0 ] # für jede Frequenz else : for n in range ( self . f . size ) : for m in range ( x . size ) : field [ n , m ] = self . vmd_hem ( np . array ( [ h [ n , m ] ] , np . float ) , np . array ( [ rho [ n , m ] ] , np . float ) , d , np . array ( [ epr [ n , m ] ] , np . float ) , np . array ( [ mur [ n , m ] ] , np . float ) , quasistatic ) . T [ n , 0 ] return field