pytc.solver.bug_core.rank_cut

pytc.solver.bug_core.rank_cut(lam, tau, rule='relative', e=None, rmin=1, max_rank=None)[source]

(order, r): core modes by decreasing weight and how many rule keeps.

The weight is |lam| (cut at tau * max|lam| or tau) or, for 'energy', the energy share |e| (cut at tau); see truncate_sym().

Parameters:
  • tau (float)

  • rule (str)

  • rmin (int)

  • max_rank (int | None)