calamari.repeats.CombinedPoint#

class calamari.repeats.CombinedPoint(value, error, n, internal, external, birge, weighted)#

Bases: object

One repeat group reduced to a single value, with its diagnostics.

value#

The combined value: an inverse-variance weighted mean where usable errors were supplied, an unweighted mean otherwise. NaN for an empty group.

Type:

float

error#

The uncertainty to report, chosen by combine()’s error argument.

Type:

float

n#

How many points were actually combined – the number of finite values in the group, which is not the group’s row count when a column is blank on some rows. In an interleaved AC/DC file that is the normal case, not an error.

Type:

int

internal#

1 / sqrt(sum(1/sigma_i**2)) – what the instrument’s own per-point errors imply. NaN when no usable errors were supplied.

Type:

float

external#

The uncertainty implied by the observed scatter. Equal to sigma_int * S, which for equal input errors reduces exactly to the familiar s / sqrt(n). NaN for n < 2.

Type:

float

birge#

The scale factor S = sqrt(chi2/nu), nu = n - 1: how far the repeats disagree relative to how far their error bars say they should. 1 means “exactly as expected”. NaN for n < 2 or when unweighted.

Type:

float

weighted#

Whether inverse-variance weighting was actually used.

Type:

bool