@neilberkman/sidereon 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/pkg/sidereon.js CHANGED
@@ -26454,6 +26454,26 @@ export function pseudorangeVariance(elevation_deg, options) {
26454
26454
  return ret[0];
26455
26455
  }
26456
26456
 
26457
+ /**
26458
+ * Run direct post-solve residual RAIM.
26459
+ *
26460
+ * `input` is `{ usedSats, residualsM }`. Use `options` fields `pFa`,
26461
+ * `nSystems`, and either `weights` or `weightEntries` with `varianceOptions`.
26462
+ * The result has the fault flag, chi-square statistic, threshold, largest
26463
+ * normalized residual satellite, reduced chi-square, normalized residual map,
26464
+ * RMS residual, and degrees of freedom.
26465
+ * @param {any} input
26466
+ * @param {any} options
26467
+ * @returns {any}
26468
+ */
26469
+ export function raim(input, options) {
26470
+ const ret = wasm.raim(input, options);
26471
+ if (ret[2]) {
26472
+ throw takeFromExternrefTable0(ret[1]);
26473
+ }
26474
+ return takeFromExternrefTable0(ret[0]);
26475
+ }
26476
+
26457
26477
  /**
26458
26478
  * Run standalone range RAIM/FDE over a linearized measurement set.
26459
26479
  *
@@ -26462,9 +26482,10 @@ export function pseudorangeVariance(elevation_deg, options) {
26462
26482
  * estimated state dimension). `options` is an optional `{ pFa?, maxExclusions?,
26463
26483
  * minRedundancy? }` object (pass `undefined` for the core defaults). Returns the
26464
26484
  * protected state correction, covariance, global chi-square test, the excluded
26465
- * ids, the per-measurement diagnostics, and the exclusion count. Delegates to
26466
- * `sidereon_core::quality::raim_fde_design`. Throws a `TypeError` for malformed
26467
- * input and an `Error` for a rank-deficient or otherwise rejected set.
26485
+ * ids, the per-measurement diagnostics, and the exclusion count. FDE
26486
+ * computation runs in `sidereon_core::quality::raim_fde_design`.
26487
+ * Malformed input throws a `TypeError`; a rank-deficient or rejected set throws
26488
+ * an `Error`.
26468
26489
  * @param {any} rows
26469
26490
  * @param {any} options
26470
26491
  * @returns {any}
Binary file