yeh_tm.get_merit

yeh_tm.get_merit(S, w, Q, dQ=0.01, Qid=4)

Calculate the merit function of the current layer stack.

Parameters:
  • S (System) – Optical system containing the layer stack.
  • w (array) – List of frequencies where a target is specified.
  • Q (array) – List of target values at the given frequencies (same shape as w).
  • dQ (float) – Allowed design tolerance of the target (in absolute units).
  • Qid (int) – Identifier of the quantity that should be used for calculation of the merit function. (0 = Rxx, ..., 7 = Tyy).
Returns:

Value of merit function.