ProfileGrid

class nyx.infer.profile.ProfileGrid[source]

Bases: object

A profile-likelihood scan: chi-squared over a grid, nuisances refitted.

Indexed in grid-axis order, so chi2[i, j] is at axes[0][i], axes[1][j].

Attributes Summary

axes

best

Where on the grid the chi-squared is lowest.

chi2

delta_chi2

Chi-squared relative to the best point on the grid.

levels

Delta chi-squared at 1, 2 and 3 sigma, for a contour call.

names

Attributes Documentation

axes = <dataclasses._MISSING_TYPE object>
best

Where on the grid the chi-squared is lowest.

Returns:

The grid coordinate of the minimum, keyed by parameter name.

Return type:

dict of str to float

chi2 = <dataclasses._MISSING_TYPE object>
delta_chi2

Chi-squared relative to the best point on the grid.

Return type:

numpy.ndarray

levels

Delta chi-squared at 1, 2 and 3 sigma, for a contour call.

Returns:

Three levels, one per sigma.

Return type:

tuple of float

names = <dataclasses._MISSING_TYPE object>
__init__(names, axes, chi2)
classmethod __new__(*args, **kwargs)