empyrean.RejectionConfig

class RejectionConfig(enabled=True, kind=RejectionKind.ADAPTIVE, chi2_base=9.21, lambda_=1.0, max_threshold=100.0, chi2_rej=8.0, chi2_rec=7.0, max_passes=4)[source]

Bases: object

Outlier-rejection configuration. The active fields are determined by kind.

Mirrors scott::rejection::RejectionStrategy plus the upstream max_rejection_passes knob. Set enabled=False to disable the rejection pass entirely.

Methods

__init__([enabled, kind, chi2_base, ...])

Attributes

chi2_base

χ²(2 dof, p = 0.01) — Carpino, Milani & Chesley 2003.

chi2_rec

χ²-with-hysteresis lower threshold — recover a previously- rejected observation when χ² < chi2_rec.

chi2_rej

χ²-with-hysteresis upper threshold — reject when χ² > chi2_rej.

enabled

kind

Strategy selector.

lambda_

Adaptation strength.

max_passes

max_threshold

Effective-threshold cap for adaptive rejection.

Parameters:
enabled: bool = True
kind: RejectionKind = 'adaptive'

Strategy selector. Default RejectionKind.ADAPTIVE.

chi2_base: float = 9.21

χ²(2 dof, p = 0.01) — Carpino, Milani & Chesley 2003. Adaptive rejection only.

lambda_: float = 1.0

Adaptation strength. 0 reduces to standard χ² rejection; higher values protect informative observations more. Adaptive rejection only.

max_threshold: float = 100.0

Effective-threshold cap for adaptive rejection.

chi2_rej: float = 8.0

χ²-with-hysteresis upper threshold — reject when χ² > chi2_rej. CMC2003 only. Default 8.0 (≈ 98.2% confidence at 2 DOF).

chi2_rec: float = 7.0

χ²-with-hysteresis lower threshold — recover a previously- rejected observation when χ² < chi2_rec. CMC2003 only. Must satisfy chi2_rec < chi2_rej for hysteresis to break cycles. Default 7.0 (≈ 96.9% confidence at 2 DOF).

max_passes: int = 4