Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/src/estimation/est_defs.om # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / src / estimation / est_defs.om` 162 lines ยท 4879 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note Shared constants and struct declarations for the pure seeded OM-2 estimation stack 3 note (EST-0 types, EST-1 KF, EST-1 info ref, EST-3b scale mixture, EST-2/v3 discrete 4 note predictive layer, and EST-v4 persistence-aware families). 5 note Must be first in any concatenated omc build so om2 and all structs precede the first fn. 6 om2 7 8 const EST_MAX_DIM ulong 8 9 const EST_DIGEST_SIZE ulong 32 10 const EST_FORMAT_VERSION ulong 1 11 const EST_MAX_HORIZON ulong `1000000` 12 const EST_ENCODED_MAX ulong 2304 13 14 const EST_KIND_MODEL ulong 1 15 const EST_KIND_OBSERVATION ulong 2 16 const EST_KIND_BELIEF ulong 3 17 const EST_KIND_PREDICTION ulong 4 18 const EST_KIND_INNOVATION ulong 5 19 20 const EST_UNIT_NONE ulong 0 21 const EST_UNIT_MILLI_CELSIUS ulong 1 22 const EST_UNIT_MILLI_CELSIUS_PER_S ulong 2 23 const EST_UNIT_WATT ulong 3 24 const EST_UNIT_WATT_PER_S ulong 4 25 const EST_UNIT_NANOSECOND ulong 5 26 const EST_UNIT_BYTE ulong 6 27 const EST_UNIT_DIMENSIONLESS ulong 7 28 const EST_UNIT_LOG2_PICOSECOND ulong 8 29 const EST_UNIT_MAX ulong 9 30 31 const EST_UNCERTAINTY_GAUSSIAN ulong 1 32 const EST_ESTIMATOR_LINEAR_KALMAN ulong 1 33 34 const EST_OK long 0 35 const EST_ERR_NULL long -1 36 const EST_ERR_DIM long -2 37 const EST_ERR_NONFINITE long -3 38 const EST_ERR_ASYMMETRIC long -4 39 const EST_ERR_NOT_PSD long -5 40 const EST_ERR_NOT_PD long -6 41 const EST_ERR_UNIT long -7 42 const EST_ERR_STALE long -8 43 const EST_ERR_MODEL long -9 44 const EST_ERR_KIND long -10 45 const EST_ERR_ENCODING long -11 46 const EST_ERR_TIME long -12 47 48 const EST_MIX_MAX ulong 3 49 const EST_MIX_MAX_H ulong 64 50 51 const EST_PRED_K long 400 52 const EST_PRED_KU ulong 400 53 const EST_PRED_N ulong 801 54 const EST_PRED_MAX_H ulong 64 55 const EST_PRED_NPARAM ulong 8 56 const EST_PRED_FLOOR f64 1.0e-12 57 const EST_PRED_GRID_TOL f64 1.0e-6 58 59 const EST_FAM_GAUSS_KF ulong 1 60 const EST_FAM_HUBER_KF ulong 2 61 const EST_FAM_STUDENT_T ulong 3 62 const EST_FAM_SCALE_MIX ulong 4 63 const EST_FAM_ADAPTIVE_T ulong 5 64 65 const EST_OBS_OK ulong 0 66 const EST_OBS_MISSING ulong 1 67 const EST_OBS_NONFINITE ulong 2 68 const EST_OBS_OFF_GRID ulong 3 69 const EST_OBS_OUT_OF_RANGE ulong 4 70 const EST_OBS_CLASSES ulong 5 71 72 const EST_NOT_CALIBRATED ulong 0 73 const EST_CALIBRATED ulong 1 74 75 const EST4_MAX_D ulong 3 76 const EST4_GL_LAMBDA f64 0.995 77 const EST4_TAU_RATIO f64 10.0 78 const EST4_G3_W f64 0.5 79 80 const EST4_G1_LAG ulong 1 81 const EST4_G2_AR ulong 2 82 const EST4_G3_TWO ulong 3 83 84 note ---- Flat ulong array layouts for EST-0/EST-1 records (>64 cells) ---- 85 86 const EST_MODEL_LEN ulong 280 87 const EM_N ulong 0 88 const EM_M ulong 1 89 const EM_EST ulong 2 90 const EM_MEAN ulong 3 91 const EM_STEP ulong 4 92 const EM_SUNIT ulong 5 93 const EM_OUNIT ulong 13 94 const EM_F ulong 21 95 const EM_Q ulong 85 96 const EM_H ulong 149 97 const EM_R ulong 213 98 99 const EST_OBS_LEN ulong 96 100 const EO_M ulong 0 101 const EO_TNS ulong 1 102 const EO_SEQ ulong 2 103 const EO_UNIT ulong 3 104 const EO_Z ulong 11 105 const EO_R ulong 19 106 const EO_SRC ulong 83 107 const EO_EV ulong 87 108 109 const EST_BELIEF_LEN ulong 96 110 const EB_N ulong 0 111 const EB_GEN ulong 1 112 const EB_TNS ulong 2 113 const EB_UNIT ulong 3 114 const EB_X ulong 11 115 const EB_P ulong 19 116 const EB_MDL ulong 83 117 const EB_PAR ulong 87 118 const EB_ROOT ulong 91 119 120 const EST_PRED_LEN ulong 176 121 const EP_PRIOR ulong 0 122 const EP_MDL ulong 4 123 const EP_HZ ulong 8 124 const EP_GEN ulong 9 125 const EP_TNS ulong 10 126 const EP_N ulong 11 127 const EP_M ulong 12 128 const EP_HC ulong 13 129 const EP_X ulong 14 130 const EP_YM ulong 22 131 const EP_BU ulong 30 132 const EP_P ulong 38 133 const EP_S ulong 102 134 135 const EST_INNOV_LEN ulong 96 136 const EI_PRED ulong 0 137 const EI_OBS ulong 4 138 const EI_MDL ulong 8 139 const EI_M ulong 12 140 const EI_NIS ulong 13 141 const EI_TNS ulong 14 142 const EI_NU ulong 15 143 const EI_S ulong 23 144 145 const EST_REF_LEN ulong 73 146 const ER_N ulong 0 147 const ER_Y ulong 1 148 const ER_YV ulong 65 149 150 note ---- Compact structs (all <= 64 cells) ---- 151 152 struct EstMix k ulong w f64 3 v f64 3 end 153 struct EstAssump family ulong unit ulong quantum f64 lo f64 hi f64 nparam ulong param f64 8 end 154 struct EstPObs val f64 cls ulong evidence uchar 32 end 155 struct EstBState assumption ulong 4 has_anchor ulong anchor f64 xhat f64 P f64 s2 f64 gap ulong generation ulong evidence_root ulong 4 cnt ulong 5 cache_valid ulong cache_key f64 cache_lo long cache_hi long end 156 struct EstDPred assumption uchar 32 family ulong horizon ulong generation ulong anchor f64 quantum f64 end 157 struct EstPInnov valid ulong cls ulong k long F_lo f64 F_hi f64 logp f64 z f64 end 158 struct EstCalib n ulong cov f64 3 pit f64 10 logp_sum f64 width_sum f64 z_sum f64 z_sq f64 z_lag f64 z_prev f64 end 159 struct EstBands cov50 f64 2 cov80 f64 2 cov95 f64 2 pit f64 2 bias_max f64 lag1_max f64 min_n ulong end 160 struct Est4Params family ulong dyn f64 q f64 lam f64 nu f64 c f64 phi f64 nu_h f64 c_h f64 quantum f64 end 161 struct Est4State family ulong pv f64 9 d ulong A f64 9 Q f64 9 H f64 3 r f64 has_anchor ulong anchor f64 gap ulong x f64 3 P f64 9 g f64 gl f64 generation ulong end 162 struct Est4Pred h ulong loc f64 scale f64 nu f64 end