cultmath: span rounding margins stated as observed samples with seeds, not "at most" bounds (comment and design.md); no allowance changed
Two samples of the probe: the cut's own (seed not recorded) and an audit's (seed 0x501) give 0.057/0.046/0.075 and 0.064/0.0485/0.057 of e_n/e_g/e_h; a new seed moves them. Comment only in math.Span.cs: builds. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
15730d4e99
commit
98f4c44170
2 changed files with 13 additions and 6 deletions
|
|
@ -850,10 +850,13 @@ halfLength` is the sum of the magnitudes the octave coordinate's roundings are r
|
|||
to, and `e_n = 2^-14 + L 2^-20 S_o` (value), `e_g = 2^-12 + H 2^-20 S_o` (gradient
|
||||
length) and `e_h = 2^-10 + T 2^-20 S_o` (Frobenius norm of the Hessian), with `L`, `H`,
|
||||
`T` the three pins; they add no pin. Measured against a double kernel with the float
|
||||
hash (6000 points per band, `|x|` from 2^-2 to 2^23), the error is at most 0.057 of
|
||||
`e_n`, 0.046 of `e_g` and 0.075 of `e_h` (the last at the smallest band, where the
|
||||
absolute Hessian error is 2.3e-5 and the absolute term carries it). Errors grow
|
||||
linearly in `|x|`: the value's is 2e-4 at 2^8, 1.5e-2 at 2^14 and 0.94 at 2^20.
|
||||
hash (6000 points per band, `|x|` from 2^-2 to 2^23), two samples observed the error's
|
||||
maxima as fractions of `e_n`, `e_g` and `e_h`: 0.057, 0.046 and 0.075 in the cut's own
|
||||
sample (seed not recorded; the 0.075 is against `T 2^-20 |x|_1` alone, at the smallest
|
||||
band, where the absolute Hessian error is 2.3e-5 and the absolute term carries it), and
|
||||
0.064, 0.0485 and 0.057 in an audit's (seed 0x501). They are samples, not bounds: a new
|
||||
seed moves them. They say the allowances enclose the error with a margin of about 15.
|
||||
Errors grow linearly in `|x|`: the value's is 2e-4 at 2^8, 1.5e-2 at 2^14 and 0.94 at 2^20.
|
||||
Rounding in the Frobenius-to-operator-norm step needs no allowance: the Frobenius norm
|
||||
exceeds the operator norm.
|
||||
|
||||
|
|
|
|||
|
|
@ -189,8 +189,12 @@ public static partial class math
|
|||
// gradient's own derivative's pin) and the Hessian's Frobenius norm's e_h = 2^-10 + T 2^-20 S_o (T is
|
||||
// the Hessian's derivative's pin): af_snoise's absolute terms for the first two, and 2^-10 for the
|
||||
// Hessian's, which the kernel's rounding at small coordinates (2.3e-5 absolute, measured against a
|
||||
// double kernel) sits well under. The same probe (6000 points per band, |x| from 2^-2 to 2^23) puts
|
||||
// the error at most 0.057, 0.046 and 0.075 of e_n, e_g and e_h. No new pin enters.
|
||||
// double kernel) sits well under. Two samples of that probe (6000 points per band, |x| from 2^-2 to
|
||||
// 2^23) observed the error's maxima, as fractions of e_n, e_g and e_h: 0.057, 0.046 and 0.075 in the
|
||||
// cut's own sample (seed not recorded; the 0.075 is against T 2^-20 |x|_1 alone, at the smallest
|
||||
// band), and 0.064, 0.0485 and 0.057 in an audit's (seed 0x501). They are samples, not bounds: a new
|
||||
// seed moves them. What they say is that the allowances enclose the error with a margin of about 15.
|
||||
// No new pin enters.
|
||||
//
|
||||
// Domain: no coordinate range is checked, clamped or refused. The allowances grow with S_o, so
|
||||
// curvature saturates at H (true everywhere) by S_o of about 1.1e5, and fold turns positive for every
|
||||
|
|
|
|||
Loading…
Reference in a new issue