rcrpy.RCR

class rcrpy.RCR(rejection_tech=RejectionTech.SS_MEDIAN_DL)[source]

Bases: object

Single-value Robust Chauvenet Rejection.

Phase 1: API skeleton. The real iterative + bulk loops are ported in rcrpy.rejection and dispatched here.

Parameters:

rejection_tech (RejectionTech)

__init__(rejection_tech=RejectionTech.SS_MEDIAN_DL)[source]
Parameters:

rejection_tech (RejectionTech)

Methods

__init__([rejection_tech])

perform_bulk_rejection(y[, w])

perform_rejection(y[, w])

set_mu_type(mu_type)

set_non_parametric_model(model)

Attach a rcrpy.NonParametric subclass instance.

set_parametric_model(model)

Attach a rcrpy.FunctionalForm instance for model-fitting RCR.

set_rejection_tech(tech)

set_non_parametric_model(model)[source]

Attach a rcrpy.NonParametric subclass instance. The user must also call set_mu_type(MuType.NONPARAMETRIC). Port of cpp/src/RCR.h::setNonParametricModel.

Return type:

None

set_parametric_model(model)[source]

Attach a rcrpy.FunctionalForm instance for model-fitting RCR. Sets mu_type to PARAMETRIC automatically. Port of cpp/src/RCR.h::setParametricModel.

Return type:

None