UniformConditioning ¶
Uniform conditioning of panel estimates to recoveries of the selective blocks (SMUs) inside them.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
anamorphosis
|
HermiteAnamorphosis
|
Fitted point anamorphosis. |
required |
r_smu
|
float
|
Change-of-support coefficient of the selective blocks, in (0, 1]. |
required |
r_panel
|
float
|
Change-of-support coefficient of the panel estimates, in (0, |
required |
from_json
staticmethod
¶
from_json(text)
Reads to_json output; raises InvalidInput on another class's JSON
or a newer format.
grade_tonnage
method descriptor
¶
grade_tonnage(
panels,
grade,
cutoffs,
*,
estimate_variance=None,
density=None,
)
Global grade-tonnage curve of the panels.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
panels
|
BlockModel
|
|
required |
grade
|
str
|
Column of estimated panel grades; null panels are left out. |
required |
cutoffs
|
array_like
|
|
required |
estimate_variance
|
str
|
Column of the panels' estimate variances; required without
|
None
|
density
|
(float, array_like or str)
|
Density of each panel, or the column of |
1.0
|
Returns:
| Type | Description |
|---|---|
Table
|
|
localize
method descriptor
¶
localize(
smus,
ranking,
panels,
grade,
*,
estimate_variance=None,
name="localized",
)
Localized grades of the selective blocks nested in the panels.
A panel holding n selective blocks splits its selective-block
distribution into n equal-probability bands, and its block ranked
i gets the mean of band i: the blocks average to the panel
grade and reproduce the panel's grade-tonnage curve at tonnages
k / n. Partial panels localize over the blocks present.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
smus
|
BlockModel
|
Selective blocks nesting in the panels: same rotation, sizes dividing the panel sizes, grids aligned; not sub-blocked. |
required |
ranking
|
str
|
Column of |
required |
panels
|
BlockModel
|
|
required |
grade
|
str
|
Column of estimated panel grades. |
required |
estimate_variance
|
str
|
Column of the panels' estimate variances; required without
|
None
|
name
|
str
|
Name of the new column. |
"localized"
|
Returns:
| Type | Description |
|---|---|
BlockModel
|
|
Raises:
| Type | Description |
|---|---|
InvalidInput
|
If the blocks do not nest, or a block of an estimated panel has a null rank. |
localized_grades
method descriptor
¶
localized_grades(
panel_grade, n_smu, *, estimate_variance=None
)
Grades of the selective blocks of one panel, ascending.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
panel_grade
|
float
|
|
required |
n_smu
|
int
|
Number of selective blocks in the panel. |
required |
estimate_variance
|
float
|
As in |
None
|
Returns:
| Type | Description |
|---|---|
ndarray
|
The means of |
panel_recovery
method descriptor
¶
panel_recovery(
panel_grade, cutoffs, *, estimate_variance=None
)
Recoveries of the selective blocks within one panel.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
panel_grade
|
float
|
Estimated panel grade, clamped to the anamorphosis range. |
required |
cutoffs
|
array_like
|
|
required |
estimate_variance
|
float
|
The panel's estimate variance; required without |
None
|
Returns:
| Type | Description |
|---|---|
Table
|
As |
used in