@elaraai/east-py-datascience 0.0.2-beta.6 → 0.0.2-beta.61

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.
Files changed (53) hide show
  1. package/dist/alns/alns.d.ts +528 -0
  2. package/dist/alns/alns.d.ts.map +1 -0
  3. package/dist/alns/alns.js +238 -0
  4. package/dist/alns/alns.js.map +1 -0
  5. package/dist/gp/gp.d.ts +120 -120
  6. package/dist/gp/gp.d.ts.map +1 -1
  7. package/dist/gp/gp.js +7 -7
  8. package/dist/gp/gp.js.map +1 -1
  9. package/dist/index.d.ts +5 -2
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +8 -2
  12. package/dist/index.js.map +1 -1
  13. package/dist/lightgbm/lightgbm.d.ts +168 -168
  14. package/dist/lightning/lightning.d.ts +1501 -0
  15. package/dist/lightning/lightning.d.ts.map +1 -0
  16. package/dist/lightning/lightning.js +376 -0
  17. package/dist/lightning/lightning.js.map +1 -0
  18. package/dist/mads/mads.d.ts +103 -103
  19. package/dist/mads/mads.d.ts.map +1 -1
  20. package/dist/mads/mads.js +5 -5
  21. package/dist/mads/mads.js.map +1 -1
  22. package/dist/mapie/mapie.d.ts +2058 -0
  23. package/dist/mapie/mapie.d.ts.map +1 -0
  24. package/dist/mapie/mapie.js +411 -0
  25. package/dist/mapie/mapie.js.map +1 -0
  26. package/dist/ngboost/ngboost.d.ts +126 -126
  27. package/dist/ngboost/ngboost.d.ts.map +1 -1
  28. package/dist/ngboost/ngboost.js +3 -3
  29. package/dist/ngboost/ngboost.js.map +1 -1
  30. package/dist/optuna/optuna.d.ts +314 -314
  31. package/dist/scipy/scipy.d.ts +535 -429
  32. package/dist/scipy/scipy.d.ts.map +1 -1
  33. package/dist/scipy/scipy.js +56 -3
  34. package/dist/scipy/scipy.js.map +1 -1
  35. package/dist/shap/shap.d.ts +1152 -358
  36. package/dist/shap/shap.d.ts.map +1 -1
  37. package/dist/shap/shap.js +189 -16
  38. package/dist/shap/shap.js.map +1 -1
  39. package/dist/simanneal/simanneal.d.ts +148 -148
  40. package/dist/sklearn/sklearn.d.ts +3104 -1316
  41. package/dist/sklearn/sklearn.d.ts.map +1 -1
  42. package/dist/sklearn/sklearn.js +325 -64
  43. package/dist/sklearn/sklearn.js.map +1 -1
  44. package/dist/torch/torch.d.ts +503 -350
  45. package/dist/torch/torch.d.ts.map +1 -1
  46. package/dist/torch/torch.js +39 -17
  47. package/dist/torch/torch.js.map +1 -1
  48. package/dist/tsconfig.tsbuildinfo +1 -1
  49. package/dist/xgboost/xgboost.d.ts +803 -178
  50. package/dist/xgboost/xgboost.d.ts.map +1 -1
  51. package/dist/xgboost/xgboost.js +102 -1
  52. package/dist/xgboost/xgboost.js.map +1 -1
  53. package/package.json +4 -4
@@ -17,61 +17,61 @@ export { VectorType, MatrixType, ScalarObjectiveType } from "../types.js";
17
17
  */
18
18
  export declare const OptimizeMethodType: VariantType<{
19
19
  /** BFGS algorithm */
20
- bfgs: NullType;
20
+ readonly bfgs: NullType;
21
21
  /** L-BFGS-B algorithm (default) */
22
- l_bfgs_b: NullType;
22
+ readonly l_bfgs_b: NullType;
23
23
  /** Nelder-Mead simplex */
24
- nelder_mead: NullType;
24
+ readonly nelder_mead: NullType;
25
25
  /** Powell's method */
26
- powell: NullType;
26
+ readonly powell: NullType;
27
27
  /** Conjugate gradient */
28
- cg: NullType;
28
+ readonly cg: NullType;
29
29
  }>;
30
30
  /**
31
31
  * Interpolation method for scipy.interpolate.interp1d.
32
32
  */
33
33
  export declare const InterpolationKindType: VariantType<{
34
34
  /** Linear interpolation (default) */
35
- linear: NullType;
35
+ readonly linear: NullType;
36
36
  /** Cubic interpolation */
37
- cubic: NullType;
37
+ readonly cubic: NullType;
38
38
  /** Quadratic interpolation */
39
- quadratic: NullType;
39
+ readonly quadratic: NullType;
40
40
  }>;
41
41
  /**
42
42
  * Configuration for scipy.optimize.minimize.
43
43
  */
44
44
  export declare const OptimizeConfigType: StructType<{
45
45
  /** Optimization method */
46
- method: OptionType<VariantType<{
46
+ readonly method: OptionType<VariantType<{
47
47
  /** BFGS algorithm */
48
- bfgs: NullType;
48
+ readonly bfgs: NullType;
49
49
  /** L-BFGS-B algorithm (default) */
50
- l_bfgs_b: NullType;
50
+ readonly l_bfgs_b: NullType;
51
51
  /** Nelder-Mead simplex */
52
- nelder_mead: NullType;
52
+ readonly nelder_mead: NullType;
53
53
  /** Powell's method */
54
- powell: NullType;
54
+ readonly powell: NullType;
55
55
  /** Conjugate gradient */
56
- cg: NullType;
56
+ readonly cg: NullType;
57
57
  }>>;
58
58
  /** Maximum number of iterations */
59
- max_iter: OptionType<IntegerType>;
59
+ readonly max_iter: OptionType<IntegerType>;
60
60
  /** Tolerance for convergence */
61
- tol: OptionType<FloatType>;
61
+ readonly tol: OptionType<FloatType>;
62
62
  }>;
63
63
  /**
64
64
  * Configuration for scipy.interpolate.interp1d.
65
65
  */
66
66
  export declare const InterpolateConfigType: StructType<{
67
67
  /** Interpolation method */
68
- kind: OptionType<VariantType<{
68
+ readonly kind: OptionType<VariantType<{
69
69
  /** Linear interpolation (default) */
70
- linear: NullType;
70
+ readonly linear: NullType;
71
71
  /** Cubic interpolation */
72
- cubic: NullType;
72
+ readonly cubic: NullType;
73
73
  /** Quadratic interpolation */
74
- quadratic: NullType;
74
+ readonly quadratic: NullType;
75
75
  }>>;
76
76
  }>;
77
77
  /**
@@ -79,14 +79,16 @@ export declare const InterpolateConfigType: StructType<{
79
79
  */
80
80
  export declare const ParamBoundsType: StructType<{
81
81
  /** Lower bounds for each parameter */
82
- lower: import("@elaraai/east").ArrayType<FloatType>;
82
+ readonly lower: import("@elaraai/east").ArrayType<FloatType>;
83
83
  /** Upper bounds for each parameter */
84
- upper: import("@elaraai/east").ArrayType<FloatType>;
84
+ readonly upper: import("@elaraai/east").ArrayType<FloatType>;
85
85
  }>;
86
86
  /**
87
- * Custom curve function type: (x: Float, params: Vector) -> Float
87
+ * Custom curve function type: (x: Float, params: Vector, fixed_params: Vector) -> Float
88
+ * The params are optimized, fixed_params are passed through unchanged.
89
+ * If no fixed_params provided in config, an empty vector is passed.
88
90
  */
89
- export declare const CustomCurveFunctionType: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
91
+ export declare const CustomCurveFunctionType: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
90
92
  /**
91
93
  * Curve function type for scipy_curve_fit.
92
94
  *
@@ -95,36 +97,38 @@ export declare const CustomCurveFunctionType: FunctionType<[FloatType, import("@
95
97
  */
96
98
  export declare const CurveFunctionType: VariantType<{
97
99
  /** y = a * exp(-b * x), 2 params: [a, b] */
98
- exponential_decay: NullType;
100
+ readonly exponential_decay: NullType;
99
101
  /** y = a + b * exp(-c * x), 3 params: [a, b, c] */
100
- exponential_with_offset: NullType;
102
+ readonly exponential_with_offset: NullType;
101
103
  /** y = a * exp(b * x), 2 params: [a, b] */
102
- exponential_growth: NullType;
104
+ readonly exponential_growth: NullType;
103
105
  /** y = L / (1 + exp(-k * (x - x0))), 3 params: [L, k, x0] */
104
- logistic: NullType;
106
+ readonly logistic: NullType;
105
107
  /** y = a * exp(-b * exp(-c * x)), 3 params: [a, b, c] */
106
- gompertz: NullType;
108
+ readonly gompertz: NullType;
107
109
  /** y = a * x^b, 2 params: [a, b] */
108
- power_law: NullType;
110
+ readonly power_law: NullType;
109
111
  /** y = a + b * x, 2 params: [a, b] */
110
- linear: NullType;
112
+ readonly linear: NullType;
111
113
  /** y = a + b*x + c*x^2, 3 params: [a, b, c] */
112
- quadratic: NullType;
114
+ readonly quadratic: NullType;
113
115
  /** y = a + b*x + c*x^2 + d*x^3, 4 params: [a, b, c, d] */
114
- cubic: NullType;
116
+ readonly cubic: NullType;
115
117
  /** Custom function provided by user */
116
- custom: StructType<{
117
- /** The curve function */
118
- fn: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
118
+ readonly custom: StructType<{
119
+ /** The curve function: (x, params, fixed_params) -> y */
120
+ readonly fn: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
119
121
  /** Number of parameters to optimize */
120
- n_params: IntegerType;
122
+ readonly n_params: IntegerType;
121
123
  /** Optional parameter bounds */
122
- param_bounds: OptionType<StructType<{
124
+ readonly param_bounds: OptionType<StructType<{
123
125
  /** Lower bounds for each parameter */
124
- lower: import("@elaraai/east").ArrayType<FloatType>;
126
+ readonly lower: import("@elaraai/east").ArrayType<FloatType>;
125
127
  /** Upper bounds for each parameter */
126
- upper: import("@elaraai/east").ArrayType<FloatType>;
128
+ readonly upper: import("@elaraai/east").ArrayType<FloatType>;
127
129
  }>>;
130
+ /** Optional fixed parameters passed to fn but not optimized */
131
+ readonly fixed_params: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
128
132
  }>;
129
133
  }>;
130
134
  /**
@@ -132,89 +136,104 @@ export declare const CurveFunctionType: VariantType<{
132
136
  */
133
137
  export declare const CurveFitConfigType: StructType<{
134
138
  /** Maximum number of function evaluations */
135
- max_iter: OptionType<IntegerType>;
139
+ readonly max_iter: OptionType<IntegerType>;
136
140
  /** Initial guess for parameters */
137
- initial_guess: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
141
+ readonly initial_guess: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
138
142
  }>;
139
143
  /**
140
144
  * Configuration for quadratic optimization: f(x) = 0.5 * x'Ax + b'x + c
141
145
  */
142
146
  export declare const QuadraticConfigType: StructType<{
143
147
  /** Quadratic term (symmetric positive definite) */
144
- A: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
148
+ readonly A: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
145
149
  /** Linear term */
146
- b: import("@elaraai/east").ArrayType<FloatType>;
150
+ readonly b: import("@elaraai/east").ArrayType<FloatType>;
147
151
  /** Constant term */
148
- c: FloatType;
152
+ readonly c: FloatType;
149
153
  }>;
150
154
  /**
151
155
  * Descriptive statistics result.
152
156
  */
153
157
  export declare const StatsDescribeResultType: StructType<{
154
158
  /** Number of observations */
155
- count: IntegerType;
159
+ readonly count: IntegerType;
156
160
  /** Mean value */
157
- mean: FloatType;
161
+ readonly mean: FloatType;
158
162
  /** Variance */
159
- variance: FloatType;
163
+ readonly variance: FloatType;
160
164
  /** Skewness */
161
- skewness: FloatType;
165
+ readonly skewness: FloatType;
162
166
  /** Kurtosis */
163
- kurtosis: FloatType;
167
+ readonly kurtosis: FloatType;
164
168
  /** Minimum value */
165
- min: FloatType;
169
+ readonly min: FloatType;
166
170
  /** Maximum value */
167
- max: FloatType;
171
+ readonly max: FloatType;
172
+ }>;
173
+ /**
174
+ * Robust statistics result (median-based, outlier-resistant).
175
+ */
176
+ export declare const RobustStatsResultType: StructType<{
177
+ /** Median value */
178
+ readonly median: FloatType;
179
+ /** Interquartile range (Q3 - Q1) */
180
+ readonly iqr: FloatType;
181
+ /** Median absolute deviation */
182
+ readonly mad: FloatType;
183
+ /** 25th percentile */
184
+ readonly q1: FloatType;
185
+ /** 75th percentile */
186
+ readonly q3: FloatType;
168
187
  }>;
169
188
  /**
170
189
  * Correlation result (Pearson or Spearman).
171
190
  */
172
191
  export declare const CorrelationResultType: StructType<{
173
192
  /** Correlation coefficient */
174
- correlation: FloatType;
193
+ readonly correlation: FloatType;
175
194
  /** P-value for hypothesis test */
176
- pvalue: FloatType;
195
+ readonly pvalue: FloatType;
177
196
  }>;
178
197
  /**
179
198
  * Curve fitting result.
180
199
  */
181
200
  export declare const CurveFitResultType: StructType<{
182
201
  /** Fitted parameters */
183
- params: import("@elaraai/east").ArrayType<FloatType>;
202
+ readonly params: import("@elaraai/east").ArrayType<FloatType>;
184
203
  /** Whether fit converged */
185
- success: BooleanType;
204
+ readonly success: BooleanType;
186
205
  /** Coefficient of determination (R²) */
187
- r_squared: FloatType;
206
+ readonly r_squared: FloatType;
188
207
  }>;
189
208
  /**
190
209
  * Optimization result.
191
210
  */
192
211
  export declare const OptimizeResultType: StructType<{
193
212
  /** Optimal parameters */
194
- x: import("@elaraai/east").ArrayType<FloatType>;
213
+ readonly x: import("@elaraai/east").ArrayType<FloatType>;
195
214
  /** Function value at optimum */
196
- fun: FloatType;
215
+ readonly fun: FloatType;
197
216
  /** Whether optimization succeeded */
198
- success: BooleanType;
217
+ readonly success: BooleanType;
199
218
  /** Number of iterations */
200
- nit: IntegerType;
219
+ readonly nit: IntegerType;
201
220
  }>;
202
221
  /**
203
222
  * Model blob type for scipy interpolators.
204
223
  */
205
224
  export declare const ScipyModelBlobType: VariantType<{
206
225
  /** 1D interpolator (cloudpickle serialized) */
207
- scipy_interp_1d: StructType<{
226
+ readonly scipy_interp_1d: StructType<{
208
227
  /** Serialized interpolator */
209
- data: BlobType;
228
+ readonly data: BlobType;
210
229
  /** Interpolation method used */
211
- kind: VariantType<{
230
+ readonly kind: VariantType<{
212
231
  /** Linear interpolation (default) */
213
- linear: NullType;
232
+ readonly linear: NullType;
214
233
  /** Cubic interpolation */
215
- cubic: NullType;
234
+ readonly cubic: NullType;
216
235
  /** Quadratic interpolation */
217
- quadratic: NullType;
236
+ readonly quadratic: NullType;
218
237
  }>;
219
238
  }>;
220
239
  }>;
@@ -223,9 +242,9 @@ export declare const ScipyModelBlobType: VariantType<{
223
242
  */
224
243
  export declare const DualAnnealBoundsType: StructType<{
225
244
  /** Lower bounds for each variable */
226
- lower: import("@elaraai/east").ArrayType<FloatType>;
245
+ readonly lower: import("@elaraai/east").ArrayType<FloatType>;
227
246
  /** Upper bounds for each variable */
228
- upper: import("@elaraai/east").ArrayType<FloatType>;
247
+ readonly upper: import("@elaraai/east").ArrayType<FloatType>;
229
248
  }>;
230
249
  /**
231
250
  * Configuration for scipy.optimize.dual_annealing.
@@ -235,151 +254,187 @@ export declare const DualAnnealBoundsType: StructType<{
235
254
  */
236
255
  export declare const DualAnnealConfigType: StructType<{
237
256
  /** Maximum function evaluations (default: 1000) */
238
- maxfun: OptionType<IntegerType>;
257
+ readonly maxfun: OptionType<IntegerType>;
239
258
  /** Maximum iterations (default: 1000) */
240
- maxiter: OptionType<IntegerType>;
259
+ readonly maxiter: OptionType<IntegerType>;
241
260
  /** Initial temperature (default: 5230) */
242
- initial_temp: OptionType<FloatType>;
261
+ readonly initial_temp: OptionType<FloatType>;
243
262
  /** Temperature restart threshold (default: 2e-5) */
244
- restart_temp_ratio: OptionType<FloatType>;
263
+ readonly restart_temp_ratio: OptionType<FloatType>;
245
264
  /** Visiting distribution parameter (default: 2.62) */
246
- visit: OptionType<FloatType>;
265
+ readonly visit: OptionType<FloatType>;
247
266
  /** Acceptance distribution parameter (default: -5.0) */
248
- accept: OptionType<FloatType>;
267
+ readonly accept: OptionType<FloatType>;
249
268
  /** Random seed for reproducibility */
250
- seed: OptionType<IntegerType>;
269
+ readonly seed: OptionType<IntegerType>;
251
270
  /** Disable local search for speed (default: false) */
252
- no_local_search: OptionType<BooleanType>;
271
+ readonly no_local_search: OptionType<BooleanType>;
253
272
  }>;
254
273
  /**
255
274
  * Result from dual annealing optimization.
256
275
  */
257
276
  export declare const DualAnnealResultType: StructType<{
258
277
  /** Best solution found */
259
- x: import("@elaraai/east").ArrayType<FloatType>;
278
+ readonly x: import("@elaraai/east").ArrayType<FloatType>;
260
279
  /** Best objective value */
261
- fun: FloatType;
280
+ readonly fun: FloatType;
262
281
  /** Number of function evaluations */
263
- nfev: IntegerType;
282
+ readonly nfev: IntegerType;
264
283
  /** Number of iterations */
265
- nit: IntegerType;
284
+ readonly nit: IntegerType;
266
285
  /** Whether optimization succeeded */
267
- success: BooleanType;
286
+ readonly success: BooleanType;
268
287
  /** Status message */
269
- message: StringType;
288
+ readonly message: StringType;
270
289
  }>;
271
290
  /**
272
291
  * Fit a parametric curve to data using nonlinear least squares.
273
292
  */
274
293
  export declare const scipy_curve_fit: import("@elaraai/east").PlatformDefinition<[VariantType<{
275
294
  /** y = a * exp(-b * x), 2 params: [a, b] */
276
- exponential_decay: NullType;
295
+ readonly exponential_decay: NullType;
277
296
  /** y = a + b * exp(-c * x), 3 params: [a, b, c] */
278
- exponential_with_offset: NullType;
297
+ readonly exponential_with_offset: NullType;
279
298
  /** y = a * exp(b * x), 2 params: [a, b] */
280
- exponential_growth: NullType;
299
+ readonly exponential_growth: NullType;
281
300
  /** y = L / (1 + exp(-k * (x - x0))), 3 params: [L, k, x0] */
282
- logistic: NullType;
301
+ readonly logistic: NullType;
283
302
  /** y = a * exp(-b * exp(-c * x)), 3 params: [a, b, c] */
284
- gompertz: NullType;
303
+ readonly gompertz: NullType;
285
304
  /** y = a * x^b, 2 params: [a, b] */
286
- power_law: NullType;
305
+ readonly power_law: NullType;
287
306
  /** y = a + b * x, 2 params: [a, b] */
288
- linear: NullType;
307
+ readonly linear: NullType;
289
308
  /** y = a + b*x + c*x^2, 3 params: [a, b, c] */
290
- quadratic: NullType;
309
+ readonly quadratic: NullType;
291
310
  /** y = a + b*x + c*x^2 + d*x^3, 4 params: [a, b, c, d] */
292
- cubic: NullType;
311
+ readonly cubic: NullType;
293
312
  /** Custom function provided by user */
294
- custom: StructType<{
295
- /** The curve function */
296
- fn: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
313
+ readonly custom: StructType<{
314
+ /** The curve function: (x, params, fixed_params) -> y */
315
+ readonly fn: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
297
316
  /** Number of parameters to optimize */
298
- n_params: IntegerType;
317
+ readonly n_params: IntegerType;
299
318
  /** Optional parameter bounds */
300
- param_bounds: OptionType<StructType<{
319
+ readonly param_bounds: OptionType<StructType<{
301
320
  /** Lower bounds for each parameter */
302
- lower: import("@elaraai/east").ArrayType<FloatType>;
321
+ readonly lower: import("@elaraai/east").ArrayType<FloatType>;
303
322
  /** Upper bounds for each parameter */
304
- upper: import("@elaraai/east").ArrayType<FloatType>;
323
+ readonly upper: import("@elaraai/east").ArrayType<FloatType>;
305
324
  }>>;
325
+ /** Optional fixed parameters passed to fn but not optimized */
326
+ readonly fixed_params: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
306
327
  }>;
307
328
  }>, import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>, StructType<{
308
329
  /** Maximum number of function evaluations */
309
- max_iter: OptionType<IntegerType>;
330
+ readonly max_iter: OptionType<IntegerType>;
310
331
  /** Initial guess for parameters */
311
- initial_guess: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
332
+ readonly initial_guess: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
312
333
  }>], StructType<{
313
334
  /** Fitted parameters */
314
- params: import("@elaraai/east").ArrayType<FloatType>;
335
+ readonly params: import("@elaraai/east").ArrayType<FloatType>;
315
336
  /** Whether fit converged */
316
- success: BooleanType;
337
+ readonly success: BooleanType;
317
338
  /** Coefficient of determination (R²) */
318
- r_squared: FloatType;
339
+ readonly r_squared: FloatType;
319
340
  }>>;
320
341
  /**
321
342
  * Compute descriptive statistics for data.
322
343
  */
323
344
  export declare const scipy_stats_describe: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], StructType<{
324
345
  /** Number of observations */
325
- count: IntegerType;
346
+ readonly count: IntegerType;
326
347
  /** Mean value */
327
- mean: FloatType;
348
+ readonly mean: FloatType;
328
349
  /** Variance */
329
- variance: FloatType;
350
+ readonly variance: FloatType;
330
351
  /** Skewness */
331
- skewness: FloatType;
352
+ readonly skewness: FloatType;
332
353
  /** Kurtosis */
333
- kurtosis: FloatType;
354
+ readonly kurtosis: FloatType;
334
355
  /** Minimum value */
335
- min: FloatType;
356
+ readonly min: FloatType;
336
357
  /** Maximum value */
337
- max: FloatType;
358
+ readonly max: FloatType;
338
359
  }>>;
339
360
  /**
340
361
  * Compute Pearson correlation coefficient.
341
362
  */
342
363
  export declare const scipy_stats_pearsonr: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], StructType<{
343
364
  /** Correlation coefficient */
344
- correlation: FloatType;
365
+ readonly correlation: FloatType;
345
366
  /** P-value for hypothesis test */
346
- pvalue: FloatType;
367
+ readonly pvalue: FloatType;
347
368
  }>>;
348
369
  /**
349
370
  * Compute Spearman rank correlation.
350
371
  */
351
372
  export declare const scipy_stats_spearmanr: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], StructType<{
352
373
  /** Correlation coefficient */
353
- correlation: FloatType;
374
+ readonly correlation: FloatType;
354
375
  /** P-value for hypothesis test */
355
- pvalue: FloatType;
376
+ readonly pvalue: FloatType;
377
+ }>>;
378
+ /**
379
+ * Compute percentiles of data.
380
+ * @param data - Input data vector
381
+ * @param percentiles - Percentile values to compute (0-100)
382
+ * @returns Values at the specified percentiles
383
+ */
384
+ export declare const scipy_stats_percentile: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], import("@elaraai/east").ArrayType<FloatType>>;
385
+ /**
386
+ * Compute interquartile range (Q3 - Q1).
387
+ */
388
+ export declare const scipy_stats_iqr: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], FloatType>;
389
+ /**
390
+ * Compute median value.
391
+ */
392
+ export declare const scipy_stats_median: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], FloatType>;
393
+ /**
394
+ * Compute median absolute deviation (robust std estimate).
395
+ */
396
+ export declare const scipy_stats_mad: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], FloatType>;
397
+ /**
398
+ * Compute robust statistics in one call (median, iqr, mad, q1, q3).
399
+ */
400
+ export declare const scipy_stats_robust: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], StructType<{
401
+ /** Median value */
402
+ readonly median: FloatType;
403
+ /** Interquartile range (Q3 - Q1) */
404
+ readonly iqr: FloatType;
405
+ /** Median absolute deviation */
406
+ readonly mad: FloatType;
407
+ /** 25th percentile */
408
+ readonly q1: FloatType;
409
+ /** 75th percentile */
410
+ readonly q3: FloatType;
356
411
  }>>;
357
412
  /**
358
413
  * Fit 1D interpolator to data.
359
414
  */
360
415
  export declare const scipy_interpolate_1d_fit: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>, StructType<{
361
416
  /** Interpolation method */
362
- kind: OptionType<VariantType<{
417
+ readonly kind: OptionType<VariantType<{
363
418
  /** Linear interpolation (default) */
364
- linear: NullType;
419
+ readonly linear: NullType;
365
420
  /** Cubic interpolation */
366
- cubic: NullType;
421
+ readonly cubic: NullType;
367
422
  /** Quadratic interpolation */
368
- quadratic: NullType;
423
+ readonly quadratic: NullType;
369
424
  }>>;
370
425
  }>], VariantType<{
371
426
  /** 1D interpolator (cloudpickle serialized) */
372
- scipy_interp_1d: StructType<{
427
+ readonly scipy_interp_1d: StructType<{
373
428
  /** Serialized interpolator */
374
- data: BlobType;
429
+ readonly data: BlobType;
375
430
  /** Interpolation method used */
376
- kind: VariantType<{
431
+ readonly kind: VariantType<{
377
432
  /** Linear interpolation (default) */
378
- linear: NullType;
433
+ readonly linear: NullType;
379
434
  /** Cubic interpolation */
380
- cubic: NullType;
435
+ readonly cubic: NullType;
381
436
  /** Quadratic interpolation */
382
- quadratic: NullType;
437
+ readonly quadratic: NullType;
383
438
  }>;
384
439
  }>;
385
440
  }>>;
@@ -388,17 +443,17 @@ export declare const scipy_interpolate_1d_fit: import("@elaraai/east").PlatformD
388
443
  */
389
444
  export declare const scipy_interpolate_1d_predict: import("@elaraai/east").PlatformDefinition<[VariantType<{
390
445
  /** 1D interpolator (cloudpickle serialized) */
391
- scipy_interp_1d: StructType<{
446
+ readonly scipy_interp_1d: StructType<{
392
447
  /** Serialized interpolator */
393
- data: BlobType;
448
+ readonly data: BlobType;
394
449
  /** Interpolation method used */
395
- kind: VariantType<{
450
+ readonly kind: VariantType<{
396
451
  /** Linear interpolation (default) */
397
- linear: NullType;
452
+ readonly linear: NullType;
398
453
  /** Cubic interpolation */
399
- cubic: NullType;
454
+ readonly cubic: NullType;
400
455
  /** Quadratic interpolation */
401
- quadratic: NullType;
456
+ readonly quadratic: NullType;
402
457
  }>;
403
458
  }>;
404
459
  }>, import("@elaraai/east").ArrayType<FloatType>], import("@elaraai/east").ArrayType<FloatType>>;
@@ -407,69 +462,69 @@ export declare const scipy_interpolate_1d_predict: import("@elaraai/east").Platf
407
462
  */
408
463
  export declare const scipy_optimize_minimize: import("@elaraai/east").PlatformDefinition<[FunctionType<[import("@elaraai/east").ArrayType<FloatType>], FloatType>, import("@elaraai/east").ArrayType<FloatType>, StructType<{
409
464
  /** Optimization method */
410
- method: OptionType<VariantType<{
465
+ readonly method: OptionType<VariantType<{
411
466
  /** BFGS algorithm */
412
- bfgs: NullType;
467
+ readonly bfgs: NullType;
413
468
  /** L-BFGS-B algorithm (default) */
414
- l_bfgs_b: NullType;
469
+ readonly l_bfgs_b: NullType;
415
470
  /** Nelder-Mead simplex */
416
- nelder_mead: NullType;
471
+ readonly nelder_mead: NullType;
417
472
  /** Powell's method */
418
- powell: NullType;
473
+ readonly powell: NullType;
419
474
  /** Conjugate gradient */
420
- cg: NullType;
475
+ readonly cg: NullType;
421
476
  }>>;
422
477
  /** Maximum number of iterations */
423
- max_iter: OptionType<IntegerType>;
478
+ readonly max_iter: OptionType<IntegerType>;
424
479
  /** Tolerance for convergence */
425
- tol: OptionType<FloatType>;
480
+ readonly tol: OptionType<FloatType>;
426
481
  }>], StructType<{
427
482
  /** Optimal parameters */
428
- x: import("@elaraai/east").ArrayType<FloatType>;
483
+ readonly x: import("@elaraai/east").ArrayType<FloatType>;
429
484
  /** Function value at optimum */
430
- fun: FloatType;
485
+ readonly fun: FloatType;
431
486
  /** Whether optimization succeeded */
432
- success: BooleanType;
487
+ readonly success: BooleanType;
433
488
  /** Number of iterations */
434
- nit: IntegerType;
489
+ readonly nit: IntegerType;
435
490
  }>>;
436
491
  /**
437
492
  * Minimize a quadratic function with analytical gradient.
438
493
  */
439
494
  export declare const scipy_optimize_minimize_quadratic: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, StructType<{
440
495
  /** Quadratic term (symmetric positive definite) */
441
- A: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
496
+ readonly A: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
442
497
  /** Linear term */
443
- b: import("@elaraai/east").ArrayType<FloatType>;
498
+ readonly b: import("@elaraai/east").ArrayType<FloatType>;
444
499
  /** Constant term */
445
- c: FloatType;
500
+ readonly c: FloatType;
446
501
  }>, StructType<{
447
502
  /** Optimization method */
448
- method: OptionType<VariantType<{
503
+ readonly method: OptionType<VariantType<{
449
504
  /** BFGS algorithm */
450
- bfgs: NullType;
505
+ readonly bfgs: NullType;
451
506
  /** L-BFGS-B algorithm (default) */
452
- l_bfgs_b: NullType;
507
+ readonly l_bfgs_b: NullType;
453
508
  /** Nelder-Mead simplex */
454
- nelder_mead: NullType;
509
+ readonly nelder_mead: NullType;
455
510
  /** Powell's method */
456
- powell: NullType;
511
+ readonly powell: NullType;
457
512
  /** Conjugate gradient */
458
- cg: NullType;
513
+ readonly cg: NullType;
459
514
  }>>;
460
515
  /** Maximum number of iterations */
461
- max_iter: OptionType<IntegerType>;
516
+ readonly max_iter: OptionType<IntegerType>;
462
517
  /** Tolerance for convergence */
463
- tol: OptionType<FloatType>;
518
+ readonly tol: OptionType<FloatType>;
464
519
  }>], StructType<{
465
520
  /** Optimal parameters */
466
- x: import("@elaraai/east").ArrayType<FloatType>;
521
+ readonly x: import("@elaraai/east").ArrayType<FloatType>;
467
522
  /** Function value at optimum */
468
- fun: FloatType;
523
+ readonly fun: FloatType;
469
524
  /** Whether optimization succeeded */
470
- success: BooleanType;
525
+ readonly success: BooleanType;
471
526
  /** Number of iterations */
472
- nit: IntegerType;
527
+ readonly nit: IntegerType;
473
528
  }>>;
474
529
  /**
475
530
  * Global optimization using dual annealing.
@@ -486,39 +541,39 @@ export declare const scipy_optimize_minimize_quadratic: import("@elaraai/east").
486
541
  */
487
542
  export declare const scipy_optimize_dual_annealing: import("@elaraai/east").PlatformDefinition<[FunctionType<[import("@elaraai/east").ArrayType<FloatType>], FloatType>, OptionType<import("@elaraai/east").ArrayType<FloatType>>, StructType<{
488
543
  /** Lower bounds for each variable */
489
- lower: import("@elaraai/east").ArrayType<FloatType>;
544
+ readonly lower: import("@elaraai/east").ArrayType<FloatType>;
490
545
  /** Upper bounds for each variable */
491
- upper: import("@elaraai/east").ArrayType<FloatType>;
546
+ readonly upper: import("@elaraai/east").ArrayType<FloatType>;
492
547
  }>, StructType<{
493
548
  /** Maximum function evaluations (default: 1000) */
494
- maxfun: OptionType<IntegerType>;
549
+ readonly maxfun: OptionType<IntegerType>;
495
550
  /** Maximum iterations (default: 1000) */
496
- maxiter: OptionType<IntegerType>;
551
+ readonly maxiter: OptionType<IntegerType>;
497
552
  /** Initial temperature (default: 5230) */
498
- initial_temp: OptionType<FloatType>;
553
+ readonly initial_temp: OptionType<FloatType>;
499
554
  /** Temperature restart threshold (default: 2e-5) */
500
- restart_temp_ratio: OptionType<FloatType>;
555
+ readonly restart_temp_ratio: OptionType<FloatType>;
501
556
  /** Visiting distribution parameter (default: 2.62) */
502
- visit: OptionType<FloatType>;
557
+ readonly visit: OptionType<FloatType>;
503
558
  /** Acceptance distribution parameter (default: -5.0) */
504
- accept: OptionType<FloatType>;
559
+ readonly accept: OptionType<FloatType>;
505
560
  /** Random seed for reproducibility */
506
- seed: OptionType<IntegerType>;
561
+ readonly seed: OptionType<IntegerType>;
507
562
  /** Disable local search for speed (default: false) */
508
- no_local_search: OptionType<BooleanType>;
563
+ readonly no_local_search: OptionType<BooleanType>;
509
564
  }>], StructType<{
510
565
  /** Best solution found */
511
- x: import("@elaraai/east").ArrayType<FloatType>;
566
+ readonly x: import("@elaraai/east").ArrayType<FloatType>;
512
567
  /** Best objective value */
513
- fun: FloatType;
568
+ readonly fun: FloatType;
514
569
  /** Number of function evaluations */
515
- nfev: IntegerType;
570
+ readonly nfev: IntegerType;
516
571
  /** Number of iterations */
517
- nit: IntegerType;
572
+ readonly nit: IntegerType;
518
573
  /** Whether optimization succeeded */
519
- success: BooleanType;
574
+ readonly success: BooleanType;
520
575
  /** Status message */
521
- message: StringType;
576
+ readonly message: StringType;
522
577
  }>>;
523
578
  /**
524
579
  * Type definitions for scipy functions.
@@ -529,202 +584,216 @@ export declare const ScipyTypes: {
529
584
  readonly ScalarObjectiveType: FunctionType<[import("@elaraai/east").ArrayType<FloatType>], FloatType>;
530
585
  readonly OptimizeMethodType: VariantType<{
531
586
  /** BFGS algorithm */
532
- bfgs: NullType;
587
+ readonly bfgs: NullType;
533
588
  /** L-BFGS-B algorithm (default) */
534
- l_bfgs_b: NullType;
589
+ readonly l_bfgs_b: NullType;
535
590
  /** Nelder-Mead simplex */
536
- nelder_mead: NullType;
591
+ readonly nelder_mead: NullType;
537
592
  /** Powell's method */
538
- powell: NullType;
593
+ readonly powell: NullType;
539
594
  /** Conjugate gradient */
540
- cg: NullType;
595
+ readonly cg: NullType;
541
596
  }>;
542
597
  readonly InterpolationKindType: VariantType<{
543
598
  /** Linear interpolation (default) */
544
- linear: NullType;
599
+ readonly linear: NullType;
545
600
  /** Cubic interpolation */
546
- cubic: NullType;
601
+ readonly cubic: NullType;
547
602
  /** Quadratic interpolation */
548
- quadratic: NullType;
603
+ readonly quadratic: NullType;
549
604
  }>;
550
605
  readonly OptimizeConfigType: StructType<{
551
606
  /** Optimization method */
552
- method: OptionType<VariantType<{
607
+ readonly method: OptionType<VariantType<{
553
608
  /** BFGS algorithm */
554
- bfgs: NullType;
609
+ readonly bfgs: NullType;
555
610
  /** L-BFGS-B algorithm (default) */
556
- l_bfgs_b: NullType;
611
+ readonly l_bfgs_b: NullType;
557
612
  /** Nelder-Mead simplex */
558
- nelder_mead: NullType;
613
+ readonly nelder_mead: NullType;
559
614
  /** Powell's method */
560
- powell: NullType;
615
+ readonly powell: NullType;
561
616
  /** Conjugate gradient */
562
- cg: NullType;
617
+ readonly cg: NullType;
563
618
  }>>;
564
619
  /** Maximum number of iterations */
565
- max_iter: OptionType<IntegerType>;
620
+ readonly max_iter: OptionType<IntegerType>;
566
621
  /** Tolerance for convergence */
567
- tol: OptionType<FloatType>;
622
+ readonly tol: OptionType<FloatType>;
568
623
  }>;
569
624
  readonly InterpolateConfigType: StructType<{
570
625
  /** Interpolation method */
571
- kind: OptionType<VariantType<{
626
+ readonly kind: OptionType<VariantType<{
572
627
  /** Linear interpolation (default) */
573
- linear: NullType;
628
+ readonly linear: NullType;
574
629
  /** Cubic interpolation */
575
- cubic: NullType;
630
+ readonly cubic: NullType;
576
631
  /** Quadratic interpolation */
577
- quadratic: NullType;
632
+ readonly quadratic: NullType;
578
633
  }>>;
579
634
  }>;
580
635
  readonly ParamBoundsType: StructType<{
581
636
  /** Lower bounds for each parameter */
582
- lower: import("@elaraai/east").ArrayType<FloatType>;
637
+ readonly lower: import("@elaraai/east").ArrayType<FloatType>;
583
638
  /** Upper bounds for each parameter */
584
- upper: import("@elaraai/east").ArrayType<FloatType>;
639
+ readonly upper: import("@elaraai/east").ArrayType<FloatType>;
585
640
  }>;
586
- readonly CustomCurveFunctionType: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
641
+ readonly CustomCurveFunctionType: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
587
642
  readonly CurveFunctionType: VariantType<{
588
643
  /** y = a * exp(-b * x), 2 params: [a, b] */
589
- exponential_decay: NullType;
644
+ readonly exponential_decay: NullType;
590
645
  /** y = a + b * exp(-c * x), 3 params: [a, b, c] */
591
- exponential_with_offset: NullType;
646
+ readonly exponential_with_offset: NullType;
592
647
  /** y = a * exp(b * x), 2 params: [a, b] */
593
- exponential_growth: NullType;
648
+ readonly exponential_growth: NullType;
594
649
  /** y = L / (1 + exp(-k * (x - x0))), 3 params: [L, k, x0] */
595
- logistic: NullType;
650
+ readonly logistic: NullType;
596
651
  /** y = a * exp(-b * exp(-c * x)), 3 params: [a, b, c] */
597
- gompertz: NullType;
652
+ readonly gompertz: NullType;
598
653
  /** y = a * x^b, 2 params: [a, b] */
599
- power_law: NullType;
654
+ readonly power_law: NullType;
600
655
  /** y = a + b * x, 2 params: [a, b] */
601
- linear: NullType;
656
+ readonly linear: NullType;
602
657
  /** y = a + b*x + c*x^2, 3 params: [a, b, c] */
603
- quadratic: NullType;
658
+ readonly quadratic: NullType;
604
659
  /** y = a + b*x + c*x^2 + d*x^3, 4 params: [a, b, c, d] */
605
- cubic: NullType;
660
+ readonly cubic: NullType;
606
661
  /** Custom function provided by user */
607
- custom: StructType<{
608
- /** The curve function */
609
- fn: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
662
+ readonly custom: StructType<{
663
+ /** The curve function: (x, params, fixed_params) -> y */
664
+ readonly fn: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
610
665
  /** Number of parameters to optimize */
611
- n_params: IntegerType;
666
+ readonly n_params: IntegerType;
612
667
  /** Optional parameter bounds */
613
- param_bounds: OptionType<StructType<{
668
+ readonly param_bounds: OptionType<StructType<{
614
669
  /** Lower bounds for each parameter */
615
- lower: import("@elaraai/east").ArrayType<FloatType>;
670
+ readonly lower: import("@elaraai/east").ArrayType<FloatType>;
616
671
  /** Upper bounds for each parameter */
617
- upper: import("@elaraai/east").ArrayType<FloatType>;
672
+ readonly upper: import("@elaraai/east").ArrayType<FloatType>;
618
673
  }>>;
674
+ /** Optional fixed parameters passed to fn but not optimized */
675
+ readonly fixed_params: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
619
676
  }>;
620
677
  }>;
621
678
  readonly CurveFitConfigType: StructType<{
622
679
  /** Maximum number of function evaluations */
623
- max_iter: OptionType<IntegerType>;
680
+ readonly max_iter: OptionType<IntegerType>;
624
681
  /** Initial guess for parameters */
625
- initial_guess: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
682
+ readonly initial_guess: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
626
683
  }>;
627
684
  readonly QuadraticConfigType: StructType<{
628
685
  /** Quadratic term (symmetric positive definite) */
629
- A: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
686
+ readonly A: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
630
687
  /** Linear term */
631
- b: import("@elaraai/east").ArrayType<FloatType>;
688
+ readonly b: import("@elaraai/east").ArrayType<FloatType>;
632
689
  /** Constant term */
633
- c: FloatType;
690
+ readonly c: FloatType;
634
691
  }>;
635
692
  readonly StatsDescribeResultType: StructType<{
636
693
  /** Number of observations */
637
- count: IntegerType;
694
+ readonly count: IntegerType;
638
695
  /** Mean value */
639
- mean: FloatType;
696
+ readonly mean: FloatType;
640
697
  /** Variance */
641
- variance: FloatType;
698
+ readonly variance: FloatType;
642
699
  /** Skewness */
643
- skewness: FloatType;
700
+ readonly skewness: FloatType;
644
701
  /** Kurtosis */
645
- kurtosis: FloatType;
702
+ readonly kurtosis: FloatType;
646
703
  /** Minimum value */
647
- min: FloatType;
704
+ readonly min: FloatType;
648
705
  /** Maximum value */
649
- max: FloatType;
706
+ readonly max: FloatType;
707
+ }>;
708
+ readonly RobustStatsResultType: StructType<{
709
+ /** Median value */
710
+ readonly median: FloatType;
711
+ /** Interquartile range (Q3 - Q1) */
712
+ readonly iqr: FloatType;
713
+ /** Median absolute deviation */
714
+ readonly mad: FloatType;
715
+ /** 25th percentile */
716
+ readonly q1: FloatType;
717
+ /** 75th percentile */
718
+ readonly q3: FloatType;
650
719
  }>;
651
720
  readonly CorrelationResultType: StructType<{
652
721
  /** Correlation coefficient */
653
- correlation: FloatType;
722
+ readonly correlation: FloatType;
654
723
  /** P-value for hypothesis test */
655
- pvalue: FloatType;
724
+ readonly pvalue: FloatType;
656
725
  }>;
657
726
  readonly CurveFitResultType: StructType<{
658
727
  /** Fitted parameters */
659
- params: import("@elaraai/east").ArrayType<FloatType>;
728
+ readonly params: import("@elaraai/east").ArrayType<FloatType>;
660
729
  /** Whether fit converged */
661
- success: BooleanType;
730
+ readonly success: BooleanType;
662
731
  /** Coefficient of determination (R²) */
663
- r_squared: FloatType;
732
+ readonly r_squared: FloatType;
664
733
  }>;
665
734
  readonly OptimizeResultType: StructType<{
666
735
  /** Optimal parameters */
667
- x: import("@elaraai/east").ArrayType<FloatType>;
736
+ readonly x: import("@elaraai/east").ArrayType<FloatType>;
668
737
  /** Function value at optimum */
669
- fun: FloatType;
738
+ readonly fun: FloatType;
670
739
  /** Whether optimization succeeded */
671
- success: BooleanType;
740
+ readonly success: BooleanType;
672
741
  /** Number of iterations */
673
- nit: IntegerType;
742
+ readonly nit: IntegerType;
674
743
  }>;
675
744
  readonly ModelBlobType: VariantType<{
676
745
  /** 1D interpolator (cloudpickle serialized) */
677
- scipy_interp_1d: StructType<{
746
+ readonly scipy_interp_1d: StructType<{
678
747
  /** Serialized interpolator */
679
- data: BlobType;
748
+ readonly data: BlobType;
680
749
  /** Interpolation method used */
681
- kind: VariantType<{
750
+ readonly kind: VariantType<{
682
751
  /** Linear interpolation (default) */
683
- linear: NullType;
752
+ readonly linear: NullType;
684
753
  /** Cubic interpolation */
685
- cubic: NullType;
754
+ readonly cubic: NullType;
686
755
  /** Quadratic interpolation */
687
- quadratic: NullType;
756
+ readonly quadratic: NullType;
688
757
  }>;
689
758
  }>;
690
759
  }>;
691
760
  readonly DualAnnealBoundsType: StructType<{
692
761
  /** Lower bounds for each variable */
693
- lower: import("@elaraai/east").ArrayType<FloatType>;
762
+ readonly lower: import("@elaraai/east").ArrayType<FloatType>;
694
763
  /** Upper bounds for each variable */
695
- upper: import("@elaraai/east").ArrayType<FloatType>;
764
+ readonly upper: import("@elaraai/east").ArrayType<FloatType>;
696
765
  }>;
697
766
  readonly DualAnnealConfigType: StructType<{
698
767
  /** Maximum function evaluations (default: 1000) */
699
- maxfun: OptionType<IntegerType>;
768
+ readonly maxfun: OptionType<IntegerType>;
700
769
  /** Maximum iterations (default: 1000) */
701
- maxiter: OptionType<IntegerType>;
770
+ readonly maxiter: OptionType<IntegerType>;
702
771
  /** Initial temperature (default: 5230) */
703
- initial_temp: OptionType<FloatType>;
772
+ readonly initial_temp: OptionType<FloatType>;
704
773
  /** Temperature restart threshold (default: 2e-5) */
705
- restart_temp_ratio: OptionType<FloatType>;
774
+ readonly restart_temp_ratio: OptionType<FloatType>;
706
775
  /** Visiting distribution parameter (default: 2.62) */
707
- visit: OptionType<FloatType>;
776
+ readonly visit: OptionType<FloatType>;
708
777
  /** Acceptance distribution parameter (default: -5.0) */
709
- accept: OptionType<FloatType>;
778
+ readonly accept: OptionType<FloatType>;
710
779
  /** Random seed for reproducibility */
711
- seed: OptionType<IntegerType>;
780
+ readonly seed: OptionType<IntegerType>;
712
781
  /** Disable local search for speed (default: false) */
713
- no_local_search: OptionType<BooleanType>;
782
+ readonly no_local_search: OptionType<BooleanType>;
714
783
  }>;
715
784
  readonly DualAnnealResultType: StructType<{
716
785
  /** Best solution found */
717
- x: import("@elaraai/east").ArrayType<FloatType>;
786
+ readonly x: import("@elaraai/east").ArrayType<FloatType>;
718
787
  /** Best objective value */
719
- fun: FloatType;
788
+ readonly fun: FloatType;
720
789
  /** Number of function evaluations */
721
- nfev: IntegerType;
790
+ readonly nfev: IntegerType;
722
791
  /** Number of iterations */
723
- nit: IntegerType;
792
+ readonly nit: IntegerType;
724
793
  /** Whether optimization succeeded */
725
- success: BooleanType;
794
+ readonly success: BooleanType;
726
795
  /** Status message */
727
- message: StringType;
796
+ readonly message: StringType;
728
797
  }>;
729
798
  };
730
799
  /**
@@ -736,226 +805,249 @@ export declare const Scipy: {
736
805
  /** Fit parametric curve to data */
737
806
  readonly curveFit: import("@elaraai/east").PlatformDefinition<[VariantType<{
738
807
  /** y = a * exp(-b * x), 2 params: [a, b] */
739
- exponential_decay: NullType;
808
+ readonly exponential_decay: NullType;
740
809
  /** y = a + b * exp(-c * x), 3 params: [a, b, c] */
741
- exponential_with_offset: NullType;
810
+ readonly exponential_with_offset: NullType;
742
811
  /** y = a * exp(b * x), 2 params: [a, b] */
743
- exponential_growth: NullType;
812
+ readonly exponential_growth: NullType;
744
813
  /** y = L / (1 + exp(-k * (x - x0))), 3 params: [L, k, x0] */
745
- logistic: NullType;
814
+ readonly logistic: NullType;
746
815
  /** y = a * exp(-b * exp(-c * x)), 3 params: [a, b, c] */
747
- gompertz: NullType;
816
+ readonly gompertz: NullType;
748
817
  /** y = a * x^b, 2 params: [a, b] */
749
- power_law: NullType;
818
+ readonly power_law: NullType;
750
819
  /** y = a + b * x, 2 params: [a, b] */
751
- linear: NullType;
820
+ readonly linear: NullType;
752
821
  /** y = a + b*x + c*x^2, 3 params: [a, b, c] */
753
- quadratic: NullType;
822
+ readonly quadratic: NullType;
754
823
  /** y = a + b*x + c*x^2 + d*x^3, 4 params: [a, b, c, d] */
755
- cubic: NullType;
824
+ readonly cubic: NullType;
756
825
  /** Custom function provided by user */
757
- custom: StructType<{
758
- /** The curve function */
759
- fn: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
826
+ readonly custom: StructType<{
827
+ /** The curve function: (x, params, fixed_params) -> y */
828
+ readonly fn: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
760
829
  /** Number of parameters to optimize */
761
- n_params: IntegerType;
830
+ readonly n_params: IntegerType;
762
831
  /** Optional parameter bounds */
763
- param_bounds: OptionType<StructType<{
832
+ readonly param_bounds: OptionType<StructType<{
764
833
  /** Lower bounds for each parameter */
765
- lower: import("@elaraai/east").ArrayType<FloatType>;
834
+ readonly lower: import("@elaraai/east").ArrayType<FloatType>;
766
835
  /** Upper bounds for each parameter */
767
- upper: import("@elaraai/east").ArrayType<FloatType>;
836
+ readonly upper: import("@elaraai/east").ArrayType<FloatType>;
768
837
  }>>;
838
+ /** Optional fixed parameters passed to fn but not optimized */
839
+ readonly fixed_params: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
769
840
  }>;
770
841
  }>, import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>, StructType<{
771
842
  /** Maximum number of function evaluations */
772
- max_iter: OptionType<IntegerType>;
843
+ readonly max_iter: OptionType<IntegerType>;
773
844
  /** Initial guess for parameters */
774
- initial_guess: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
845
+ readonly initial_guess: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
775
846
  }>], StructType<{
776
847
  /** Fitted parameters */
777
- params: import("@elaraai/east").ArrayType<FloatType>;
848
+ readonly params: import("@elaraai/east").ArrayType<FloatType>;
778
849
  /** Whether fit converged */
779
- success: BooleanType;
850
+ readonly success: BooleanType;
780
851
  /** Coefficient of determination (R²) */
781
- r_squared: FloatType;
852
+ readonly r_squared: FloatType;
782
853
  }>>;
783
854
  /** Compute descriptive statistics */
784
855
  readonly statsDescribe: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], StructType<{
785
856
  /** Number of observations */
786
- count: IntegerType;
857
+ readonly count: IntegerType;
787
858
  /** Mean value */
788
- mean: FloatType;
859
+ readonly mean: FloatType;
789
860
  /** Variance */
790
- variance: FloatType;
861
+ readonly variance: FloatType;
791
862
  /** Skewness */
792
- skewness: FloatType;
863
+ readonly skewness: FloatType;
793
864
  /** Kurtosis */
794
- kurtosis: FloatType;
865
+ readonly kurtosis: FloatType;
795
866
  /** Minimum value */
796
- min: FloatType;
867
+ readonly min: FloatType;
797
868
  /** Maximum value */
798
- max: FloatType;
869
+ readonly max: FloatType;
799
870
  }>>;
800
871
  /** Compute Pearson correlation */
801
872
  readonly statsPearsonr: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], StructType<{
802
873
  /** Correlation coefficient */
803
- correlation: FloatType;
874
+ readonly correlation: FloatType;
804
875
  /** P-value for hypothesis test */
805
- pvalue: FloatType;
876
+ readonly pvalue: FloatType;
806
877
  }>>;
807
878
  /** Compute Spearman correlation */
808
879
  readonly statsSpearmanr: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], StructType<{
809
880
  /** Correlation coefficient */
810
- correlation: FloatType;
881
+ readonly correlation: FloatType;
811
882
  /** P-value for hypothesis test */
812
- pvalue: FloatType;
883
+ readonly pvalue: FloatType;
884
+ }>>;
885
+ /** Compute percentiles */
886
+ readonly statsPercentile: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], import("@elaraai/east").ArrayType<FloatType>>;
887
+ /** Compute interquartile range */
888
+ readonly statsIqr: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], FloatType>;
889
+ /** Compute median */
890
+ readonly statsMedian: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], FloatType>;
891
+ /** Compute median absolute deviation */
892
+ readonly statsMad: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], FloatType>;
893
+ /** Compute robust statistics (median, iqr, mad, q1, q3) */
894
+ readonly statsRobust: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], StructType<{
895
+ /** Median value */
896
+ readonly median: FloatType;
897
+ /** Interquartile range (Q3 - Q1) */
898
+ readonly iqr: FloatType;
899
+ /** Median absolute deviation */
900
+ readonly mad: FloatType;
901
+ /** 25th percentile */
902
+ readonly q1: FloatType;
903
+ /** 75th percentile */
904
+ readonly q3: FloatType;
813
905
  }>>;
814
906
  /** Fit 1D interpolator */
815
907
  readonly interpolate1dFit: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>, StructType<{
816
908
  /** Interpolation method */
817
- kind: OptionType<VariantType<{
909
+ readonly kind: OptionType<VariantType<{
818
910
  /** Linear interpolation (default) */
819
- linear: NullType;
911
+ readonly linear: NullType;
820
912
  /** Cubic interpolation */
821
- cubic: NullType;
913
+ readonly cubic: NullType;
822
914
  /** Quadratic interpolation */
823
- quadratic: NullType;
915
+ readonly quadratic: NullType;
824
916
  }>>;
825
917
  }>], VariantType<{
826
918
  /** 1D interpolator (cloudpickle serialized) */
827
- scipy_interp_1d: StructType<{
919
+ readonly scipy_interp_1d: StructType<{
828
920
  /** Serialized interpolator */
829
- data: BlobType;
921
+ readonly data: BlobType;
830
922
  /** Interpolation method used */
831
- kind: VariantType<{
923
+ readonly kind: VariantType<{
832
924
  /** Linear interpolation (default) */
833
- linear: NullType;
925
+ readonly linear: NullType;
834
926
  /** Cubic interpolation */
835
- cubic: NullType;
927
+ readonly cubic: NullType;
836
928
  /** Quadratic interpolation */
837
- quadratic: NullType;
929
+ readonly quadratic: NullType;
838
930
  }>;
839
931
  }>;
840
932
  }>>;
841
933
  /** Evaluate 1D interpolator */
842
934
  readonly interpolate1dPredict: import("@elaraai/east").PlatformDefinition<[VariantType<{
843
935
  /** 1D interpolator (cloudpickle serialized) */
844
- scipy_interp_1d: StructType<{
936
+ readonly scipy_interp_1d: StructType<{
845
937
  /** Serialized interpolator */
846
- data: BlobType;
938
+ readonly data: BlobType;
847
939
  /** Interpolation method used */
848
- kind: VariantType<{
940
+ readonly kind: VariantType<{
849
941
  /** Linear interpolation (default) */
850
- linear: NullType;
942
+ readonly linear: NullType;
851
943
  /** Cubic interpolation */
852
- cubic: NullType;
944
+ readonly cubic: NullType;
853
945
  /** Quadratic interpolation */
854
- quadratic: NullType;
946
+ readonly quadratic: NullType;
855
947
  }>;
856
948
  }>;
857
949
  }>, import("@elaraai/east").ArrayType<FloatType>], import("@elaraai/east").ArrayType<FloatType>>;
858
950
  /** Minimize scalar function */
859
951
  readonly optimizeMinimize: import("@elaraai/east").PlatformDefinition<[FunctionType<[import("@elaraai/east").ArrayType<FloatType>], FloatType>, import("@elaraai/east").ArrayType<FloatType>, StructType<{
860
952
  /** Optimization method */
861
- method: OptionType<VariantType<{
953
+ readonly method: OptionType<VariantType<{
862
954
  /** BFGS algorithm */
863
- bfgs: NullType;
955
+ readonly bfgs: NullType;
864
956
  /** L-BFGS-B algorithm (default) */
865
- l_bfgs_b: NullType;
957
+ readonly l_bfgs_b: NullType;
866
958
  /** Nelder-Mead simplex */
867
- nelder_mead: NullType;
959
+ readonly nelder_mead: NullType;
868
960
  /** Powell's method */
869
- powell: NullType;
961
+ readonly powell: NullType;
870
962
  /** Conjugate gradient */
871
- cg: NullType;
963
+ readonly cg: NullType;
872
964
  }>>;
873
965
  /** Maximum number of iterations */
874
- max_iter: OptionType<IntegerType>;
966
+ readonly max_iter: OptionType<IntegerType>;
875
967
  /** Tolerance for convergence */
876
- tol: OptionType<FloatType>;
968
+ readonly tol: OptionType<FloatType>;
877
969
  }>], StructType<{
878
970
  /** Optimal parameters */
879
- x: import("@elaraai/east").ArrayType<FloatType>;
971
+ readonly x: import("@elaraai/east").ArrayType<FloatType>;
880
972
  /** Function value at optimum */
881
- fun: FloatType;
973
+ readonly fun: FloatType;
882
974
  /** Whether optimization succeeded */
883
- success: BooleanType;
975
+ readonly success: BooleanType;
884
976
  /** Number of iterations */
885
- nit: IntegerType;
977
+ readonly nit: IntegerType;
886
978
  }>>;
887
979
  /** Minimize quadratic function */
888
980
  readonly optimizeMinimizeQuadratic: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, StructType<{
889
981
  /** Quadratic term (symmetric positive definite) */
890
- A: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
982
+ readonly A: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
891
983
  /** Linear term */
892
- b: import("@elaraai/east").ArrayType<FloatType>;
984
+ readonly b: import("@elaraai/east").ArrayType<FloatType>;
893
985
  /** Constant term */
894
- c: FloatType;
986
+ readonly c: FloatType;
895
987
  }>, StructType<{
896
988
  /** Optimization method */
897
- method: OptionType<VariantType<{
989
+ readonly method: OptionType<VariantType<{
898
990
  /** BFGS algorithm */
899
- bfgs: NullType;
991
+ readonly bfgs: NullType;
900
992
  /** L-BFGS-B algorithm (default) */
901
- l_bfgs_b: NullType;
993
+ readonly l_bfgs_b: NullType;
902
994
  /** Nelder-Mead simplex */
903
- nelder_mead: NullType;
995
+ readonly nelder_mead: NullType;
904
996
  /** Powell's method */
905
- powell: NullType;
997
+ readonly powell: NullType;
906
998
  /** Conjugate gradient */
907
- cg: NullType;
999
+ readonly cg: NullType;
908
1000
  }>>;
909
1001
  /** Maximum number of iterations */
910
- max_iter: OptionType<IntegerType>;
1002
+ readonly max_iter: OptionType<IntegerType>;
911
1003
  /** Tolerance for convergence */
912
- tol: OptionType<FloatType>;
1004
+ readonly tol: OptionType<FloatType>;
913
1005
  }>], StructType<{
914
1006
  /** Optimal parameters */
915
- x: import("@elaraai/east").ArrayType<FloatType>;
1007
+ readonly x: import("@elaraai/east").ArrayType<FloatType>;
916
1008
  /** Function value at optimum */
917
- fun: FloatType;
1009
+ readonly fun: FloatType;
918
1010
  /** Whether optimization succeeded */
919
- success: BooleanType;
1011
+ readonly success: BooleanType;
920
1012
  /** Number of iterations */
921
- nit: IntegerType;
1013
+ readonly nit: IntegerType;
922
1014
  }>>;
923
1015
  /** Global optimization using dual annealing */
924
1016
  readonly optimizeDualAnnealing: import("@elaraai/east").PlatformDefinition<[FunctionType<[import("@elaraai/east").ArrayType<FloatType>], FloatType>, OptionType<import("@elaraai/east").ArrayType<FloatType>>, StructType<{
925
1017
  /** Lower bounds for each variable */
926
- lower: import("@elaraai/east").ArrayType<FloatType>;
1018
+ readonly lower: import("@elaraai/east").ArrayType<FloatType>;
927
1019
  /** Upper bounds for each variable */
928
- upper: import("@elaraai/east").ArrayType<FloatType>;
1020
+ readonly upper: import("@elaraai/east").ArrayType<FloatType>;
929
1021
  }>, StructType<{
930
1022
  /** Maximum function evaluations (default: 1000) */
931
- maxfun: OptionType<IntegerType>;
1023
+ readonly maxfun: OptionType<IntegerType>;
932
1024
  /** Maximum iterations (default: 1000) */
933
- maxiter: OptionType<IntegerType>;
1025
+ readonly maxiter: OptionType<IntegerType>;
934
1026
  /** Initial temperature (default: 5230) */
935
- initial_temp: OptionType<FloatType>;
1027
+ readonly initial_temp: OptionType<FloatType>;
936
1028
  /** Temperature restart threshold (default: 2e-5) */
937
- restart_temp_ratio: OptionType<FloatType>;
1029
+ readonly restart_temp_ratio: OptionType<FloatType>;
938
1030
  /** Visiting distribution parameter (default: 2.62) */
939
- visit: OptionType<FloatType>;
1031
+ readonly visit: OptionType<FloatType>;
940
1032
  /** Acceptance distribution parameter (default: -5.0) */
941
- accept: OptionType<FloatType>;
1033
+ readonly accept: OptionType<FloatType>;
942
1034
  /** Random seed for reproducibility */
943
- seed: OptionType<IntegerType>;
1035
+ readonly seed: OptionType<IntegerType>;
944
1036
  /** Disable local search for speed (default: false) */
945
- no_local_search: OptionType<BooleanType>;
1037
+ readonly no_local_search: OptionType<BooleanType>;
946
1038
  }>], StructType<{
947
1039
  /** Best solution found */
948
- x: import("@elaraai/east").ArrayType<FloatType>;
1040
+ readonly x: import("@elaraai/east").ArrayType<FloatType>;
949
1041
  /** Best objective value */
950
- fun: FloatType;
1042
+ readonly fun: FloatType;
951
1043
  /** Number of function evaluations */
952
- nfev: IntegerType;
1044
+ readonly nfev: IntegerType;
953
1045
  /** Number of iterations */
954
- nit: IntegerType;
1046
+ readonly nit: IntegerType;
955
1047
  /** Whether optimization succeeded */
956
- success: BooleanType;
1048
+ readonly success: BooleanType;
957
1049
  /** Status message */
958
- message: StringType;
1050
+ readonly message: StringType;
959
1051
  }>>;
960
1052
  /** Type definitions */
961
1053
  readonly Types: {
@@ -964,202 +1056,216 @@ export declare const Scipy: {
964
1056
  readonly ScalarObjectiveType: FunctionType<[import("@elaraai/east").ArrayType<FloatType>], FloatType>;
965
1057
  readonly OptimizeMethodType: VariantType<{
966
1058
  /** BFGS algorithm */
967
- bfgs: NullType;
1059
+ readonly bfgs: NullType;
968
1060
  /** L-BFGS-B algorithm (default) */
969
- l_bfgs_b: NullType;
1061
+ readonly l_bfgs_b: NullType;
970
1062
  /** Nelder-Mead simplex */
971
- nelder_mead: NullType;
1063
+ readonly nelder_mead: NullType;
972
1064
  /** Powell's method */
973
- powell: NullType;
1065
+ readonly powell: NullType;
974
1066
  /** Conjugate gradient */
975
- cg: NullType;
1067
+ readonly cg: NullType;
976
1068
  }>;
977
1069
  readonly InterpolationKindType: VariantType<{
978
1070
  /** Linear interpolation (default) */
979
- linear: NullType;
1071
+ readonly linear: NullType;
980
1072
  /** Cubic interpolation */
981
- cubic: NullType;
1073
+ readonly cubic: NullType;
982
1074
  /** Quadratic interpolation */
983
- quadratic: NullType;
1075
+ readonly quadratic: NullType;
984
1076
  }>;
985
1077
  readonly OptimizeConfigType: StructType<{
986
1078
  /** Optimization method */
987
- method: OptionType<VariantType<{
1079
+ readonly method: OptionType<VariantType<{
988
1080
  /** BFGS algorithm */
989
- bfgs: NullType;
1081
+ readonly bfgs: NullType;
990
1082
  /** L-BFGS-B algorithm (default) */
991
- l_bfgs_b: NullType;
1083
+ readonly l_bfgs_b: NullType;
992
1084
  /** Nelder-Mead simplex */
993
- nelder_mead: NullType;
1085
+ readonly nelder_mead: NullType;
994
1086
  /** Powell's method */
995
- powell: NullType;
1087
+ readonly powell: NullType;
996
1088
  /** Conjugate gradient */
997
- cg: NullType;
1089
+ readonly cg: NullType;
998
1090
  }>>;
999
1091
  /** Maximum number of iterations */
1000
- max_iter: OptionType<IntegerType>;
1092
+ readonly max_iter: OptionType<IntegerType>;
1001
1093
  /** Tolerance for convergence */
1002
- tol: OptionType<FloatType>;
1094
+ readonly tol: OptionType<FloatType>;
1003
1095
  }>;
1004
1096
  readonly InterpolateConfigType: StructType<{
1005
1097
  /** Interpolation method */
1006
- kind: OptionType<VariantType<{
1098
+ readonly kind: OptionType<VariantType<{
1007
1099
  /** Linear interpolation (default) */
1008
- linear: NullType;
1100
+ readonly linear: NullType;
1009
1101
  /** Cubic interpolation */
1010
- cubic: NullType;
1102
+ readonly cubic: NullType;
1011
1103
  /** Quadratic interpolation */
1012
- quadratic: NullType;
1104
+ readonly quadratic: NullType;
1013
1105
  }>>;
1014
1106
  }>;
1015
1107
  readonly ParamBoundsType: StructType<{
1016
1108
  /** Lower bounds for each parameter */
1017
- lower: import("@elaraai/east").ArrayType<FloatType>;
1109
+ readonly lower: import("@elaraai/east").ArrayType<FloatType>;
1018
1110
  /** Upper bounds for each parameter */
1019
- upper: import("@elaraai/east").ArrayType<FloatType>;
1111
+ readonly upper: import("@elaraai/east").ArrayType<FloatType>;
1020
1112
  }>;
1021
- readonly CustomCurveFunctionType: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
1113
+ readonly CustomCurveFunctionType: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
1022
1114
  readonly CurveFunctionType: VariantType<{
1023
1115
  /** y = a * exp(-b * x), 2 params: [a, b] */
1024
- exponential_decay: NullType;
1116
+ readonly exponential_decay: NullType;
1025
1117
  /** y = a + b * exp(-c * x), 3 params: [a, b, c] */
1026
- exponential_with_offset: NullType;
1118
+ readonly exponential_with_offset: NullType;
1027
1119
  /** y = a * exp(b * x), 2 params: [a, b] */
1028
- exponential_growth: NullType;
1120
+ readonly exponential_growth: NullType;
1029
1121
  /** y = L / (1 + exp(-k * (x - x0))), 3 params: [L, k, x0] */
1030
- logistic: NullType;
1122
+ readonly logistic: NullType;
1031
1123
  /** y = a * exp(-b * exp(-c * x)), 3 params: [a, b, c] */
1032
- gompertz: NullType;
1124
+ readonly gompertz: NullType;
1033
1125
  /** y = a * x^b, 2 params: [a, b] */
1034
- power_law: NullType;
1126
+ readonly power_law: NullType;
1035
1127
  /** y = a + b * x, 2 params: [a, b] */
1036
- linear: NullType;
1128
+ readonly linear: NullType;
1037
1129
  /** y = a + b*x + c*x^2, 3 params: [a, b, c] */
1038
- quadratic: NullType;
1130
+ readonly quadratic: NullType;
1039
1131
  /** y = a + b*x + c*x^2 + d*x^3, 4 params: [a, b, c, d] */
1040
- cubic: NullType;
1132
+ readonly cubic: NullType;
1041
1133
  /** Custom function provided by user */
1042
- custom: StructType<{
1043
- /** The curve function */
1044
- fn: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
1134
+ readonly custom: StructType<{
1135
+ /** The curve function: (x, params, fixed_params) -> y */
1136
+ readonly fn: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
1045
1137
  /** Number of parameters to optimize */
1046
- n_params: IntegerType;
1138
+ readonly n_params: IntegerType;
1047
1139
  /** Optional parameter bounds */
1048
- param_bounds: OptionType<StructType<{
1140
+ readonly param_bounds: OptionType<StructType<{
1049
1141
  /** Lower bounds for each parameter */
1050
- lower: import("@elaraai/east").ArrayType<FloatType>;
1142
+ readonly lower: import("@elaraai/east").ArrayType<FloatType>;
1051
1143
  /** Upper bounds for each parameter */
1052
- upper: import("@elaraai/east").ArrayType<FloatType>;
1144
+ readonly upper: import("@elaraai/east").ArrayType<FloatType>;
1053
1145
  }>>;
1146
+ /** Optional fixed parameters passed to fn but not optimized */
1147
+ readonly fixed_params: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
1054
1148
  }>;
1055
1149
  }>;
1056
1150
  readonly CurveFitConfigType: StructType<{
1057
1151
  /** Maximum number of function evaluations */
1058
- max_iter: OptionType<IntegerType>;
1152
+ readonly max_iter: OptionType<IntegerType>;
1059
1153
  /** Initial guess for parameters */
1060
- initial_guess: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
1154
+ readonly initial_guess: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
1061
1155
  }>;
1062
1156
  readonly QuadraticConfigType: StructType<{
1063
1157
  /** Quadratic term (symmetric positive definite) */
1064
- A: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
1158
+ readonly A: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
1065
1159
  /** Linear term */
1066
- b: import("@elaraai/east").ArrayType<FloatType>;
1160
+ readonly b: import("@elaraai/east").ArrayType<FloatType>;
1067
1161
  /** Constant term */
1068
- c: FloatType;
1162
+ readonly c: FloatType;
1069
1163
  }>;
1070
1164
  readonly StatsDescribeResultType: StructType<{
1071
1165
  /** Number of observations */
1072
- count: IntegerType;
1166
+ readonly count: IntegerType;
1073
1167
  /** Mean value */
1074
- mean: FloatType;
1168
+ readonly mean: FloatType;
1075
1169
  /** Variance */
1076
- variance: FloatType;
1170
+ readonly variance: FloatType;
1077
1171
  /** Skewness */
1078
- skewness: FloatType;
1172
+ readonly skewness: FloatType;
1079
1173
  /** Kurtosis */
1080
- kurtosis: FloatType;
1174
+ readonly kurtosis: FloatType;
1081
1175
  /** Minimum value */
1082
- min: FloatType;
1176
+ readonly min: FloatType;
1083
1177
  /** Maximum value */
1084
- max: FloatType;
1178
+ readonly max: FloatType;
1179
+ }>;
1180
+ readonly RobustStatsResultType: StructType<{
1181
+ /** Median value */
1182
+ readonly median: FloatType;
1183
+ /** Interquartile range (Q3 - Q1) */
1184
+ readonly iqr: FloatType;
1185
+ /** Median absolute deviation */
1186
+ readonly mad: FloatType;
1187
+ /** 25th percentile */
1188
+ readonly q1: FloatType;
1189
+ /** 75th percentile */
1190
+ readonly q3: FloatType;
1085
1191
  }>;
1086
1192
  readonly CorrelationResultType: StructType<{
1087
1193
  /** Correlation coefficient */
1088
- correlation: FloatType;
1194
+ readonly correlation: FloatType;
1089
1195
  /** P-value for hypothesis test */
1090
- pvalue: FloatType;
1196
+ readonly pvalue: FloatType;
1091
1197
  }>;
1092
1198
  readonly CurveFitResultType: StructType<{
1093
1199
  /** Fitted parameters */
1094
- params: import("@elaraai/east").ArrayType<FloatType>;
1200
+ readonly params: import("@elaraai/east").ArrayType<FloatType>;
1095
1201
  /** Whether fit converged */
1096
- success: BooleanType;
1202
+ readonly success: BooleanType;
1097
1203
  /** Coefficient of determination (R²) */
1098
- r_squared: FloatType;
1204
+ readonly r_squared: FloatType;
1099
1205
  }>;
1100
1206
  readonly OptimizeResultType: StructType<{
1101
1207
  /** Optimal parameters */
1102
- x: import("@elaraai/east").ArrayType<FloatType>;
1208
+ readonly x: import("@elaraai/east").ArrayType<FloatType>;
1103
1209
  /** Function value at optimum */
1104
- fun: FloatType;
1210
+ readonly fun: FloatType;
1105
1211
  /** Whether optimization succeeded */
1106
- success: BooleanType;
1212
+ readonly success: BooleanType;
1107
1213
  /** Number of iterations */
1108
- nit: IntegerType;
1214
+ readonly nit: IntegerType;
1109
1215
  }>;
1110
1216
  readonly ModelBlobType: VariantType<{
1111
1217
  /** 1D interpolator (cloudpickle serialized) */
1112
- scipy_interp_1d: StructType<{
1218
+ readonly scipy_interp_1d: StructType<{
1113
1219
  /** Serialized interpolator */
1114
- data: BlobType;
1220
+ readonly data: BlobType;
1115
1221
  /** Interpolation method used */
1116
- kind: VariantType<{
1222
+ readonly kind: VariantType<{
1117
1223
  /** Linear interpolation (default) */
1118
- linear: NullType;
1224
+ readonly linear: NullType;
1119
1225
  /** Cubic interpolation */
1120
- cubic: NullType;
1226
+ readonly cubic: NullType;
1121
1227
  /** Quadratic interpolation */
1122
- quadratic: NullType;
1228
+ readonly quadratic: NullType;
1123
1229
  }>;
1124
1230
  }>;
1125
1231
  }>;
1126
1232
  readonly DualAnnealBoundsType: StructType<{
1127
1233
  /** Lower bounds for each variable */
1128
- lower: import("@elaraai/east").ArrayType<FloatType>;
1234
+ readonly lower: import("@elaraai/east").ArrayType<FloatType>;
1129
1235
  /** Upper bounds for each variable */
1130
- upper: import("@elaraai/east").ArrayType<FloatType>;
1236
+ readonly upper: import("@elaraai/east").ArrayType<FloatType>;
1131
1237
  }>;
1132
1238
  readonly DualAnnealConfigType: StructType<{
1133
1239
  /** Maximum function evaluations (default: 1000) */
1134
- maxfun: OptionType<IntegerType>;
1240
+ readonly maxfun: OptionType<IntegerType>;
1135
1241
  /** Maximum iterations (default: 1000) */
1136
- maxiter: OptionType<IntegerType>;
1242
+ readonly maxiter: OptionType<IntegerType>;
1137
1243
  /** Initial temperature (default: 5230) */
1138
- initial_temp: OptionType<FloatType>;
1244
+ readonly initial_temp: OptionType<FloatType>;
1139
1245
  /** Temperature restart threshold (default: 2e-5) */
1140
- restart_temp_ratio: OptionType<FloatType>;
1246
+ readonly restart_temp_ratio: OptionType<FloatType>;
1141
1247
  /** Visiting distribution parameter (default: 2.62) */
1142
- visit: OptionType<FloatType>;
1248
+ readonly visit: OptionType<FloatType>;
1143
1249
  /** Acceptance distribution parameter (default: -5.0) */
1144
- accept: OptionType<FloatType>;
1250
+ readonly accept: OptionType<FloatType>;
1145
1251
  /** Random seed for reproducibility */
1146
- seed: OptionType<IntegerType>;
1252
+ readonly seed: OptionType<IntegerType>;
1147
1253
  /** Disable local search for speed (default: false) */
1148
- no_local_search: OptionType<BooleanType>;
1254
+ readonly no_local_search: OptionType<BooleanType>;
1149
1255
  }>;
1150
1256
  readonly DualAnnealResultType: StructType<{
1151
1257
  /** Best solution found */
1152
- x: import("@elaraai/east").ArrayType<FloatType>;
1258
+ readonly x: import("@elaraai/east").ArrayType<FloatType>;
1153
1259
  /** Best objective value */
1154
- fun: FloatType;
1260
+ readonly fun: FloatType;
1155
1261
  /** Number of function evaluations */
1156
- nfev: IntegerType;
1262
+ readonly nfev: IntegerType;
1157
1263
  /** Number of iterations */
1158
- nit: IntegerType;
1264
+ readonly nit: IntegerType;
1159
1265
  /** Whether optimization succeeded */
1160
- success: BooleanType;
1266
+ readonly success: BooleanType;
1161
1267
  /** Status message */
1162
- message: StringType;
1268
+ readonly message: StringType;
1163
1269
  }>;
1164
1270
  };
1165
1271
  };