towhee.models.vis4mer.utils.rank_correction

towhee.models.vis4mer.utils.rank_correction(measure, n, rank=1, dtype=torch.float32)[source]

Return low-rank matrix L such that A + L is normal :param measure: the type of measure

legt - Legendre (translated) legs - Legendre (scaled) glagt - generalized Laguerre (translated) lagt, tlagt - previous versions of (tilted) Laguerre with slightly different normalization

Parameters:
  • n (int) – dimension

  • rank (int) – rank

  • dtype (str) – data type