wickra-wasm 0.4.6 → 0.4.7
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/README.md +6 -5
- package/package.json +1 -1
- package/wickra_wasm.d.ts +166 -0
- package/wickra_wasm.js +1 -1
- package/wickra_wasm_bg.js +1032 -9
- package/wickra_wasm_bg.wasm +0 -0
package/wickra_wasm_bg.js
CHANGED
|
@@ -1019,6 +1019,74 @@ export class AdvanceBlock {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
if (Symbol.dispose) AdvanceBlock.prototype[Symbol.dispose] = AdvanceBlock.prototype.free;
|
|
1021
1021
|
|
|
1022
|
+
export class AdvanceDecline {
|
|
1023
|
+
__destroy_into_raw() {
|
|
1024
|
+
const ptr = this.__wbg_ptr;
|
|
1025
|
+
this.__wbg_ptr = 0;
|
|
1026
|
+
AdvanceDeclineFinalization.unregister(this);
|
|
1027
|
+
return ptr;
|
|
1028
|
+
}
|
|
1029
|
+
free() {
|
|
1030
|
+
const ptr = this.__destroy_into_raw();
|
|
1031
|
+
wasm.__wbg_advancedecline_free(ptr, 0);
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* @returns {boolean}
|
|
1035
|
+
*/
|
|
1036
|
+
isReady() {
|
|
1037
|
+
const ret = wasm.advancedecline_isReady(this.__wbg_ptr);
|
|
1038
|
+
return ret !== 0;
|
|
1039
|
+
}
|
|
1040
|
+
constructor() {
|
|
1041
|
+
const ret = wasm.advancedecline_new();
|
|
1042
|
+
this.__wbg_ptr = ret;
|
|
1043
|
+
AdvanceDeclineFinalization.register(this, this.__wbg_ptr, this);
|
|
1044
|
+
return this;
|
|
1045
|
+
}
|
|
1046
|
+
reset() {
|
|
1047
|
+
wasm.advancedecline_reset(this.__wbg_ptr);
|
|
1048
|
+
}
|
|
1049
|
+
/**
|
|
1050
|
+
* @param {Float64Array} change
|
|
1051
|
+
* @param {Float64Array} volume
|
|
1052
|
+
* @param {Float64Array} new_high
|
|
1053
|
+
* @param {Float64Array} new_low
|
|
1054
|
+
* @returns {number | undefined}
|
|
1055
|
+
*/
|
|
1056
|
+
update(change, volume, new_high, new_low) {
|
|
1057
|
+
try {
|
|
1058
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-32);
|
|
1059
|
+
const ptr0 = passArrayF64ToWasm0(change, wasm.__wbindgen_export3);
|
|
1060
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1061
|
+
const ptr1 = passArrayF64ToWasm0(volume, wasm.__wbindgen_export3);
|
|
1062
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1063
|
+
const ptr2 = passArrayF64ToWasm0(new_high, wasm.__wbindgen_export3);
|
|
1064
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1065
|
+
const ptr3 = passArrayF64ToWasm0(new_low, wasm.__wbindgen_export3);
|
|
1066
|
+
const len3 = WASM_VECTOR_LEN;
|
|
1067
|
+
wasm.advancedecline_update(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
1068
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1069
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
1070
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
1071
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
1072
|
+
if (r5) {
|
|
1073
|
+
throw takeObject(r4);
|
|
1074
|
+
}
|
|
1075
|
+
return r0 === 0 ? undefined : r2;
|
|
1076
|
+
} finally {
|
|
1077
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* @returns {number}
|
|
1082
|
+
*/
|
|
1083
|
+
warmupPeriod() {
|
|
1084
|
+
const ret = wasm.advancedecline_warmupPeriod(this.__wbg_ptr);
|
|
1085
|
+
return ret >>> 0;
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
if (Symbol.dispose) AdvanceDecline.prototype[Symbol.dispose] = AdvanceDecline.prototype.free;
|
|
1089
|
+
|
|
1022
1090
|
export class Alligator {
|
|
1023
1091
|
__destroy_into_raw() {
|
|
1024
1092
|
const ptr = this.__wbg_ptr;
|
|
@@ -2327,6 +2395,99 @@ export class Beta {
|
|
|
2327
2395
|
}
|
|
2328
2396
|
if (Symbol.dispose) Beta.prototype[Symbol.dispose] = Beta.prototype.free;
|
|
2329
2397
|
|
|
2398
|
+
export class BetaNeutralSpread {
|
|
2399
|
+
__destroy_into_raw() {
|
|
2400
|
+
const ptr = this.__wbg_ptr;
|
|
2401
|
+
this.__wbg_ptr = 0;
|
|
2402
|
+
BetaNeutralSpreadFinalization.unregister(this);
|
|
2403
|
+
return ptr;
|
|
2404
|
+
}
|
|
2405
|
+
free() {
|
|
2406
|
+
const ptr = this.__destroy_into_raw();
|
|
2407
|
+
wasm.__wbg_betaneutralspread_free(ptr, 0);
|
|
2408
|
+
}
|
|
2409
|
+
/**
|
|
2410
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
2411
|
+
* input position (`NaN` during warmup).
|
|
2412
|
+
* @param {Float64Array} x
|
|
2413
|
+
* @param {Float64Array} y
|
|
2414
|
+
* @returns {Float64Array}
|
|
2415
|
+
*/
|
|
2416
|
+
batch(x, y) {
|
|
2417
|
+
try {
|
|
2418
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2419
|
+
const ptr0 = passArrayF64ToWasm0(x, wasm.__wbindgen_export3);
|
|
2420
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2421
|
+
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
2422
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2423
|
+
wasm.betaneutralspread_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
2424
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2425
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2426
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2427
|
+
if (r2) {
|
|
2428
|
+
throw takeObject(r1);
|
|
2429
|
+
}
|
|
2430
|
+
return takeObject(r0);
|
|
2431
|
+
} finally {
|
|
2432
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2433
|
+
}
|
|
2434
|
+
}
|
|
2435
|
+
/**
|
|
2436
|
+
* @returns {boolean}
|
|
2437
|
+
*/
|
|
2438
|
+
isReady() {
|
|
2439
|
+
const ret = wasm.betaneutralspread_isReady(this.__wbg_ptr);
|
|
2440
|
+
return ret !== 0;
|
|
2441
|
+
}
|
|
2442
|
+
/**
|
|
2443
|
+
* @param {number} period
|
|
2444
|
+
*/
|
|
2445
|
+
constructor(period) {
|
|
2446
|
+
try {
|
|
2447
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2448
|
+
wasm.betaneutralspread_new(retptr, period);
|
|
2449
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2450
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2451
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2452
|
+
if (r2) {
|
|
2453
|
+
throw takeObject(r1);
|
|
2454
|
+
}
|
|
2455
|
+
this.__wbg_ptr = r0;
|
|
2456
|
+
BetaNeutralSpreadFinalization.register(this, this.__wbg_ptr, this);
|
|
2457
|
+
return this;
|
|
2458
|
+
} finally {
|
|
2459
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
reset() {
|
|
2463
|
+
wasm.betaneutralspread_reset(this.__wbg_ptr);
|
|
2464
|
+
}
|
|
2465
|
+
/**
|
|
2466
|
+
* @param {number} x
|
|
2467
|
+
* @param {number} y
|
|
2468
|
+
* @returns {number | undefined}
|
|
2469
|
+
*/
|
|
2470
|
+
update(x, y) {
|
|
2471
|
+
try {
|
|
2472
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2473
|
+
wasm.betaneutralspread_update(retptr, this.__wbg_ptr, x, y);
|
|
2474
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2475
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
2476
|
+
return r0 === 0 ? undefined : r2;
|
|
2477
|
+
} finally {
|
|
2478
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2479
|
+
}
|
|
2480
|
+
}
|
|
2481
|
+
/**
|
|
2482
|
+
* @returns {number}
|
|
2483
|
+
*/
|
|
2484
|
+
warmupPeriod() {
|
|
2485
|
+
const ret = wasm.betaneutralspread_warmupPeriod(this.__wbg_ptr);
|
|
2486
|
+
return ret >>> 0;
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
if (Symbol.dispose) BetaNeutralSpread.prototype[Symbol.dispose] = BetaNeutralSpread.prototype.free;
|
|
2490
|
+
|
|
2330
2491
|
export class BollingerBands {
|
|
2331
2492
|
__destroy_into_raw() {
|
|
2332
2493
|
const ptr = this.__wbg_ptr;
|
|
@@ -5226,6 +5387,99 @@ export class DetrendedStdDev {
|
|
|
5226
5387
|
}
|
|
5227
5388
|
if (Symbol.dispose) DetrendedStdDev.prototype[Symbol.dispose] = DetrendedStdDev.prototype.free;
|
|
5228
5389
|
|
|
5390
|
+
export class DistanceSsd {
|
|
5391
|
+
__destroy_into_raw() {
|
|
5392
|
+
const ptr = this.__wbg_ptr;
|
|
5393
|
+
this.__wbg_ptr = 0;
|
|
5394
|
+
DistanceSsdFinalization.unregister(this);
|
|
5395
|
+
return ptr;
|
|
5396
|
+
}
|
|
5397
|
+
free() {
|
|
5398
|
+
const ptr = this.__destroy_into_raw();
|
|
5399
|
+
wasm.__wbg_distancessd_free(ptr, 0);
|
|
5400
|
+
}
|
|
5401
|
+
/**
|
|
5402
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
5403
|
+
* input position (`NaN` during warmup).
|
|
5404
|
+
* @param {Float64Array} x
|
|
5405
|
+
* @param {Float64Array} y
|
|
5406
|
+
* @returns {Float64Array}
|
|
5407
|
+
*/
|
|
5408
|
+
batch(x, y) {
|
|
5409
|
+
try {
|
|
5410
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5411
|
+
const ptr0 = passArrayF64ToWasm0(x, wasm.__wbindgen_export3);
|
|
5412
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5413
|
+
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
5414
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5415
|
+
wasm.distancessd_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
5416
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5417
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5418
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
5419
|
+
if (r2) {
|
|
5420
|
+
throw takeObject(r1);
|
|
5421
|
+
}
|
|
5422
|
+
return takeObject(r0);
|
|
5423
|
+
} finally {
|
|
5424
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5425
|
+
}
|
|
5426
|
+
}
|
|
5427
|
+
/**
|
|
5428
|
+
* @returns {boolean}
|
|
5429
|
+
*/
|
|
5430
|
+
isReady() {
|
|
5431
|
+
const ret = wasm.distancessd_isReady(this.__wbg_ptr);
|
|
5432
|
+
return ret !== 0;
|
|
5433
|
+
}
|
|
5434
|
+
/**
|
|
5435
|
+
* @param {number} period
|
|
5436
|
+
*/
|
|
5437
|
+
constructor(period) {
|
|
5438
|
+
try {
|
|
5439
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5440
|
+
wasm.distancessd_new(retptr, period);
|
|
5441
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5442
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5443
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
5444
|
+
if (r2) {
|
|
5445
|
+
throw takeObject(r1);
|
|
5446
|
+
}
|
|
5447
|
+
this.__wbg_ptr = r0;
|
|
5448
|
+
DistanceSsdFinalization.register(this, this.__wbg_ptr, this);
|
|
5449
|
+
return this;
|
|
5450
|
+
} finally {
|
|
5451
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5452
|
+
}
|
|
5453
|
+
}
|
|
5454
|
+
reset() {
|
|
5455
|
+
wasm.distancessd_reset(this.__wbg_ptr);
|
|
5456
|
+
}
|
|
5457
|
+
/**
|
|
5458
|
+
* @param {number} x
|
|
5459
|
+
* @param {number} y
|
|
5460
|
+
* @returns {number | undefined}
|
|
5461
|
+
*/
|
|
5462
|
+
update(x, y) {
|
|
5463
|
+
try {
|
|
5464
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5465
|
+
wasm.distancessd_update(retptr, this.__wbg_ptr, x, y);
|
|
5466
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5467
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
5468
|
+
return r0 === 0 ? undefined : r2;
|
|
5469
|
+
} finally {
|
|
5470
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5471
|
+
}
|
|
5472
|
+
}
|
|
5473
|
+
/**
|
|
5474
|
+
* @returns {number}
|
|
5475
|
+
*/
|
|
5476
|
+
warmupPeriod() {
|
|
5477
|
+
const ret = wasm.distancessd_warmupPeriod(this.__wbg_ptr);
|
|
5478
|
+
return ret >>> 0;
|
|
5479
|
+
}
|
|
5480
|
+
}
|
|
5481
|
+
if (Symbol.dispose) DistanceSsd.prototype[Symbol.dispose] = DistanceSsd.prototype.free;
|
|
5482
|
+
|
|
5229
5483
|
export class Doji {
|
|
5230
5484
|
__destroy_into_raw() {
|
|
5231
5485
|
const ptr = this.__wbg_ptr;
|
|
@@ -7815,6 +8069,100 @@ export class GarmanKlassVolatility {
|
|
|
7815
8069
|
}
|
|
7816
8070
|
if (Symbol.dispose) GarmanKlassVolatility.prototype[Symbol.dispose] = GarmanKlassVolatility.prototype.free;
|
|
7817
8071
|
|
|
8072
|
+
export class GrangerCausality {
|
|
8073
|
+
__destroy_into_raw() {
|
|
8074
|
+
const ptr = this.__wbg_ptr;
|
|
8075
|
+
this.__wbg_ptr = 0;
|
|
8076
|
+
GrangerCausalityFinalization.unregister(this);
|
|
8077
|
+
return ptr;
|
|
8078
|
+
}
|
|
8079
|
+
free() {
|
|
8080
|
+
const ptr = this.__destroy_into_raw();
|
|
8081
|
+
wasm.__wbg_grangercausality_free(ptr, 0);
|
|
8082
|
+
}
|
|
8083
|
+
/**
|
|
8084
|
+
* Batch over two equally-sized arrays of prices. Returns one `f64` per
|
|
8085
|
+
* input position (`NaN` during warmup).
|
|
8086
|
+
* @param {Float64Array} a
|
|
8087
|
+
* @param {Float64Array} b
|
|
8088
|
+
* @returns {Float64Array}
|
|
8089
|
+
*/
|
|
8090
|
+
batch(a, b) {
|
|
8091
|
+
try {
|
|
8092
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8093
|
+
const ptr0 = passArrayF64ToWasm0(a, wasm.__wbindgen_export3);
|
|
8094
|
+
const len0 = WASM_VECTOR_LEN;
|
|
8095
|
+
const ptr1 = passArrayF64ToWasm0(b, wasm.__wbindgen_export3);
|
|
8096
|
+
const len1 = WASM_VECTOR_LEN;
|
|
8097
|
+
wasm.grangercausality_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
8098
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8099
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8100
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8101
|
+
if (r2) {
|
|
8102
|
+
throw takeObject(r1);
|
|
8103
|
+
}
|
|
8104
|
+
return takeObject(r0);
|
|
8105
|
+
} finally {
|
|
8106
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8107
|
+
}
|
|
8108
|
+
}
|
|
8109
|
+
/**
|
|
8110
|
+
* @returns {boolean}
|
|
8111
|
+
*/
|
|
8112
|
+
isReady() {
|
|
8113
|
+
const ret = wasm.grangercausality_isReady(this.__wbg_ptr);
|
|
8114
|
+
return ret !== 0;
|
|
8115
|
+
}
|
|
8116
|
+
/**
|
|
8117
|
+
* @param {number} period
|
|
8118
|
+
* @param {number} lag
|
|
8119
|
+
*/
|
|
8120
|
+
constructor(period, lag) {
|
|
8121
|
+
try {
|
|
8122
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8123
|
+
wasm.grangercausality_new(retptr, period, lag);
|
|
8124
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8125
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8126
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
8127
|
+
if (r2) {
|
|
8128
|
+
throw takeObject(r1);
|
|
8129
|
+
}
|
|
8130
|
+
this.__wbg_ptr = r0;
|
|
8131
|
+
GrangerCausalityFinalization.register(this, this.__wbg_ptr, this);
|
|
8132
|
+
return this;
|
|
8133
|
+
} finally {
|
|
8134
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8135
|
+
}
|
|
8136
|
+
}
|
|
8137
|
+
reset() {
|
|
8138
|
+
wasm.grangercausality_reset(this.__wbg_ptr);
|
|
8139
|
+
}
|
|
8140
|
+
/**
|
|
8141
|
+
* @param {number} a
|
|
8142
|
+
* @param {number} b
|
|
8143
|
+
* @returns {number | undefined}
|
|
8144
|
+
*/
|
|
8145
|
+
update(a, b) {
|
|
8146
|
+
try {
|
|
8147
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8148
|
+
wasm.grangercausality_update(retptr, this.__wbg_ptr, a, b);
|
|
8149
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8150
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
8151
|
+
return r0 === 0 ? undefined : r2;
|
|
8152
|
+
} finally {
|
|
8153
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
8154
|
+
}
|
|
8155
|
+
}
|
|
8156
|
+
/**
|
|
8157
|
+
* @returns {number}
|
|
8158
|
+
*/
|
|
8159
|
+
warmupPeriod() {
|
|
8160
|
+
const ret = wasm.grangercausality_warmupPeriod(this.__wbg_ptr);
|
|
8161
|
+
return ret >>> 0;
|
|
8162
|
+
}
|
|
8163
|
+
}
|
|
8164
|
+
if (Symbol.dispose) GrangerCausality.prototype[Symbol.dispose] = GrangerCausality.prototype.free;
|
|
8165
|
+
|
|
7818
8166
|
export class GravestoneDoji {
|
|
7819
8167
|
__destroy_into_raw() {
|
|
7820
8168
|
const ptr = this.__wbg_ptr;
|
|
@@ -10505,7 +10853,95 @@ export class KagiBars {
|
|
|
10505
10853
|
}
|
|
10506
10854
|
}
|
|
10507
10855
|
}
|
|
10508
|
-
if (Symbol.dispose) KagiBars.prototype[Symbol.dispose] = KagiBars.prototype.free;
|
|
10856
|
+
if (Symbol.dispose) KagiBars.prototype[Symbol.dispose] = KagiBars.prototype.free;
|
|
10857
|
+
|
|
10858
|
+
export class KalmanHedgeRatio {
|
|
10859
|
+
__destroy_into_raw() {
|
|
10860
|
+
const ptr = this.__wbg_ptr;
|
|
10861
|
+
this.__wbg_ptr = 0;
|
|
10862
|
+
KalmanHedgeRatioFinalization.unregister(this);
|
|
10863
|
+
return ptr;
|
|
10864
|
+
}
|
|
10865
|
+
free() {
|
|
10866
|
+
const ptr = this.__destroy_into_raw();
|
|
10867
|
+
wasm.__wbg_kalmanhedgeratio_free(ptr, 0);
|
|
10868
|
+
}
|
|
10869
|
+
/**
|
|
10870
|
+
* Flat `Float64Array` of length `3 * n`:
|
|
10871
|
+
* `[hedgeRatio0, intercept0, spread0, hedgeRatio1, ...]`. Warmup rows are NaN.
|
|
10872
|
+
* @param {Float64Array} a
|
|
10873
|
+
* @param {Float64Array} b
|
|
10874
|
+
* @returns {Float64Array}
|
|
10875
|
+
*/
|
|
10876
|
+
batch(a, b) {
|
|
10877
|
+
try {
|
|
10878
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10879
|
+
const ptr0 = passArrayF64ToWasm0(a, wasm.__wbindgen_export3);
|
|
10880
|
+
const len0 = WASM_VECTOR_LEN;
|
|
10881
|
+
const ptr1 = passArrayF64ToWasm0(b, wasm.__wbindgen_export3);
|
|
10882
|
+
const len1 = WASM_VECTOR_LEN;
|
|
10883
|
+
wasm.kalmanhedgeratio_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
10884
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
10885
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
10886
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
10887
|
+
if (r2) {
|
|
10888
|
+
throw takeObject(r1);
|
|
10889
|
+
}
|
|
10890
|
+
return takeObject(r0);
|
|
10891
|
+
} finally {
|
|
10892
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10893
|
+
}
|
|
10894
|
+
}
|
|
10895
|
+
/**
|
|
10896
|
+
* @returns {boolean}
|
|
10897
|
+
*/
|
|
10898
|
+
isReady() {
|
|
10899
|
+
const ret = wasm.kalmanhedgeratio_isReady(this.__wbg_ptr);
|
|
10900
|
+
return ret !== 0;
|
|
10901
|
+
}
|
|
10902
|
+
/**
|
|
10903
|
+
* @param {number} delta
|
|
10904
|
+
* @param {number} observation_var
|
|
10905
|
+
*/
|
|
10906
|
+
constructor(delta, observation_var) {
|
|
10907
|
+
try {
|
|
10908
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
10909
|
+
wasm.kalmanhedgeratio_new(retptr, delta, observation_var);
|
|
10910
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
10911
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
10912
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
10913
|
+
if (r2) {
|
|
10914
|
+
throw takeObject(r1);
|
|
10915
|
+
}
|
|
10916
|
+
this.__wbg_ptr = r0;
|
|
10917
|
+
KalmanHedgeRatioFinalization.register(this, this.__wbg_ptr, this);
|
|
10918
|
+
return this;
|
|
10919
|
+
} finally {
|
|
10920
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
10921
|
+
}
|
|
10922
|
+
}
|
|
10923
|
+
reset() {
|
|
10924
|
+
wasm.kalmanhedgeratio_reset(this.__wbg_ptr);
|
|
10925
|
+
}
|
|
10926
|
+
/**
|
|
10927
|
+
* Returns `{ hedgeRatio, intercept, spread }`, or `null` during warmup.
|
|
10928
|
+
* @param {number} a
|
|
10929
|
+
* @param {number} b
|
|
10930
|
+
* @returns {any}
|
|
10931
|
+
*/
|
|
10932
|
+
update(a, b) {
|
|
10933
|
+
const ret = wasm.kalmanhedgeratio_update(this.__wbg_ptr, a, b);
|
|
10934
|
+
return takeObject(ret);
|
|
10935
|
+
}
|
|
10936
|
+
/**
|
|
10937
|
+
* @returns {number}
|
|
10938
|
+
*/
|
|
10939
|
+
warmupPeriod() {
|
|
10940
|
+
const ret = wasm.kalmanhedgeratio_warmupPeriod(this.__wbg_ptr);
|
|
10941
|
+
return ret >>> 0;
|
|
10942
|
+
}
|
|
10943
|
+
}
|
|
10944
|
+
if (Symbol.dispose) KalmanHedgeRatio.prototype[Symbol.dispose] = KalmanHedgeRatio.prototype.free;
|
|
10509
10945
|
|
|
10510
10946
|
export class KellyCriterion {
|
|
10511
10947
|
__destroy_into_raw() {
|
|
@@ -14756,6 +15192,99 @@ export class OrderBookImbalanceTopN {
|
|
|
14756
15192
|
}
|
|
14757
15193
|
if (Symbol.dispose) OrderBookImbalanceTopN.prototype[Symbol.dispose] = OrderBookImbalanceTopN.prototype.free;
|
|
14758
15194
|
|
|
15195
|
+
export class OuHalfLife {
|
|
15196
|
+
__destroy_into_raw() {
|
|
15197
|
+
const ptr = this.__wbg_ptr;
|
|
15198
|
+
this.__wbg_ptr = 0;
|
|
15199
|
+
OuHalfLifeFinalization.unregister(this);
|
|
15200
|
+
return ptr;
|
|
15201
|
+
}
|
|
15202
|
+
free() {
|
|
15203
|
+
const ptr = this.__destroy_into_raw();
|
|
15204
|
+
wasm.__wbg_ouhalflife_free(ptr, 0);
|
|
15205
|
+
}
|
|
15206
|
+
/**
|
|
15207
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
15208
|
+
* input position (`NaN` during warmup).
|
|
15209
|
+
* @param {Float64Array} x
|
|
15210
|
+
* @param {Float64Array} y
|
|
15211
|
+
* @returns {Float64Array}
|
|
15212
|
+
*/
|
|
15213
|
+
batch(x, y) {
|
|
15214
|
+
try {
|
|
15215
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15216
|
+
const ptr0 = passArrayF64ToWasm0(x, wasm.__wbindgen_export3);
|
|
15217
|
+
const len0 = WASM_VECTOR_LEN;
|
|
15218
|
+
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
15219
|
+
const len1 = WASM_VECTOR_LEN;
|
|
15220
|
+
wasm.ouhalflife_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
15221
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15222
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15223
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15224
|
+
if (r2) {
|
|
15225
|
+
throw takeObject(r1);
|
|
15226
|
+
}
|
|
15227
|
+
return takeObject(r0);
|
|
15228
|
+
} finally {
|
|
15229
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15230
|
+
}
|
|
15231
|
+
}
|
|
15232
|
+
/**
|
|
15233
|
+
* @returns {boolean}
|
|
15234
|
+
*/
|
|
15235
|
+
isReady() {
|
|
15236
|
+
const ret = wasm.ouhalflife_isReady(this.__wbg_ptr);
|
|
15237
|
+
return ret !== 0;
|
|
15238
|
+
}
|
|
15239
|
+
/**
|
|
15240
|
+
* @param {number} period
|
|
15241
|
+
*/
|
|
15242
|
+
constructor(period) {
|
|
15243
|
+
try {
|
|
15244
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15245
|
+
wasm.ouhalflife_new(retptr, period);
|
|
15246
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15247
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
15248
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
15249
|
+
if (r2) {
|
|
15250
|
+
throw takeObject(r1);
|
|
15251
|
+
}
|
|
15252
|
+
this.__wbg_ptr = r0;
|
|
15253
|
+
OuHalfLifeFinalization.register(this, this.__wbg_ptr, this);
|
|
15254
|
+
return this;
|
|
15255
|
+
} finally {
|
|
15256
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15257
|
+
}
|
|
15258
|
+
}
|
|
15259
|
+
reset() {
|
|
15260
|
+
wasm.ouhalflife_reset(this.__wbg_ptr);
|
|
15261
|
+
}
|
|
15262
|
+
/**
|
|
15263
|
+
* @param {number} x
|
|
15264
|
+
* @param {number} y
|
|
15265
|
+
* @returns {number | undefined}
|
|
15266
|
+
*/
|
|
15267
|
+
update(x, y) {
|
|
15268
|
+
try {
|
|
15269
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
15270
|
+
wasm.ouhalflife_update(retptr, this.__wbg_ptr, x, y);
|
|
15271
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
15272
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
15273
|
+
return r0 === 0 ? undefined : r2;
|
|
15274
|
+
} finally {
|
|
15275
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
15276
|
+
}
|
|
15277
|
+
}
|
|
15278
|
+
/**
|
|
15279
|
+
* @returns {number}
|
|
15280
|
+
*/
|
|
15281
|
+
warmupPeriod() {
|
|
15282
|
+
const ret = wasm.ouhalflife_warmupPeriod(this.__wbg_ptr);
|
|
15283
|
+
return ret >>> 0;
|
|
15284
|
+
}
|
|
15285
|
+
}
|
|
15286
|
+
if (Symbol.dispose) OuHalfLife.prototype[Symbol.dispose] = OuHalfLife.prototype.free;
|
|
15287
|
+
|
|
14759
15288
|
export class PGO {
|
|
14760
15289
|
__destroy_into_raw() {
|
|
14761
15290
|
const ptr = this.__wbg_ptr;
|
|
@@ -17632,25 +18161,211 @@ export class RogersSatchellVolatility {
|
|
|
17632
18161
|
wasm.rogerssatchellvolatility_update(retptr, this.__wbg_ptr, open, high, low, close);
|
|
17633
18162
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
17634
18163
|
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
17635
|
-
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
17636
|
-
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
17637
|
-
if (r5) {
|
|
17638
|
-
throw takeObject(r4);
|
|
17639
|
-
}
|
|
18164
|
+
var r4 = getDataViewMemory0().getInt32(retptr + 4 * 4, true);
|
|
18165
|
+
var r5 = getDataViewMemory0().getInt32(retptr + 4 * 5, true);
|
|
18166
|
+
if (r5) {
|
|
18167
|
+
throw takeObject(r4);
|
|
18168
|
+
}
|
|
18169
|
+
return r0 === 0 ? undefined : r2;
|
|
18170
|
+
} finally {
|
|
18171
|
+
wasm.__wbindgen_add_to_stack_pointer(32);
|
|
18172
|
+
}
|
|
18173
|
+
}
|
|
18174
|
+
/**
|
|
18175
|
+
* @returns {number}
|
|
18176
|
+
*/
|
|
18177
|
+
warmupPeriod() {
|
|
18178
|
+
const ret = wasm.rogerssatchellvolatility_warmupPeriod(this.__wbg_ptr);
|
|
18179
|
+
return ret >>> 0;
|
|
18180
|
+
}
|
|
18181
|
+
}
|
|
18182
|
+
if (Symbol.dispose) RogersSatchellVolatility.prototype[Symbol.dispose] = RogersSatchellVolatility.prototype.free;
|
|
18183
|
+
|
|
18184
|
+
export class RollingCorrelation {
|
|
18185
|
+
__destroy_into_raw() {
|
|
18186
|
+
const ptr = this.__wbg_ptr;
|
|
18187
|
+
this.__wbg_ptr = 0;
|
|
18188
|
+
RollingCorrelationFinalization.unregister(this);
|
|
18189
|
+
return ptr;
|
|
18190
|
+
}
|
|
18191
|
+
free() {
|
|
18192
|
+
const ptr = this.__destroy_into_raw();
|
|
18193
|
+
wasm.__wbg_rollingcorrelation_free(ptr, 0);
|
|
18194
|
+
}
|
|
18195
|
+
/**
|
|
18196
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
18197
|
+
* input position (`NaN` during warmup).
|
|
18198
|
+
* @param {Float64Array} x
|
|
18199
|
+
* @param {Float64Array} y
|
|
18200
|
+
* @returns {Float64Array}
|
|
18201
|
+
*/
|
|
18202
|
+
batch(x, y) {
|
|
18203
|
+
try {
|
|
18204
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
18205
|
+
const ptr0 = passArrayF64ToWasm0(x, wasm.__wbindgen_export3);
|
|
18206
|
+
const len0 = WASM_VECTOR_LEN;
|
|
18207
|
+
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
18208
|
+
const len1 = WASM_VECTOR_LEN;
|
|
18209
|
+
wasm.rollingcorrelation_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
18210
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18211
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
18212
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
18213
|
+
if (r2) {
|
|
18214
|
+
throw takeObject(r1);
|
|
18215
|
+
}
|
|
18216
|
+
return takeObject(r0);
|
|
18217
|
+
} finally {
|
|
18218
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
18219
|
+
}
|
|
18220
|
+
}
|
|
18221
|
+
/**
|
|
18222
|
+
* @returns {boolean}
|
|
18223
|
+
*/
|
|
18224
|
+
isReady() {
|
|
18225
|
+
const ret = wasm.rollingcorrelation_isReady(this.__wbg_ptr);
|
|
18226
|
+
return ret !== 0;
|
|
18227
|
+
}
|
|
18228
|
+
/**
|
|
18229
|
+
* @param {number} period
|
|
18230
|
+
*/
|
|
18231
|
+
constructor(period) {
|
|
18232
|
+
try {
|
|
18233
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
18234
|
+
wasm.rollingcorrelation_new(retptr, period);
|
|
18235
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18236
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
18237
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
18238
|
+
if (r2) {
|
|
18239
|
+
throw takeObject(r1);
|
|
18240
|
+
}
|
|
18241
|
+
this.__wbg_ptr = r0;
|
|
18242
|
+
RollingCorrelationFinalization.register(this, this.__wbg_ptr, this);
|
|
18243
|
+
return this;
|
|
18244
|
+
} finally {
|
|
18245
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
18246
|
+
}
|
|
18247
|
+
}
|
|
18248
|
+
reset() {
|
|
18249
|
+
wasm.rollingcorrelation_reset(this.__wbg_ptr);
|
|
18250
|
+
}
|
|
18251
|
+
/**
|
|
18252
|
+
* @param {number} x
|
|
18253
|
+
* @param {number} y
|
|
18254
|
+
* @returns {number | undefined}
|
|
18255
|
+
*/
|
|
18256
|
+
update(x, y) {
|
|
18257
|
+
try {
|
|
18258
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
18259
|
+
wasm.rollingcorrelation_update(retptr, this.__wbg_ptr, x, y);
|
|
18260
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18261
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
18262
|
+
return r0 === 0 ? undefined : r2;
|
|
18263
|
+
} finally {
|
|
18264
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
18265
|
+
}
|
|
18266
|
+
}
|
|
18267
|
+
/**
|
|
18268
|
+
* @returns {number}
|
|
18269
|
+
*/
|
|
18270
|
+
warmupPeriod() {
|
|
18271
|
+
const ret = wasm.rollingcorrelation_warmupPeriod(this.__wbg_ptr);
|
|
18272
|
+
return ret >>> 0;
|
|
18273
|
+
}
|
|
18274
|
+
}
|
|
18275
|
+
if (Symbol.dispose) RollingCorrelation.prototype[Symbol.dispose] = RollingCorrelation.prototype.free;
|
|
18276
|
+
|
|
18277
|
+
export class RollingCovariance {
|
|
18278
|
+
__destroy_into_raw() {
|
|
18279
|
+
const ptr = this.__wbg_ptr;
|
|
18280
|
+
this.__wbg_ptr = 0;
|
|
18281
|
+
RollingCovarianceFinalization.unregister(this);
|
|
18282
|
+
return ptr;
|
|
18283
|
+
}
|
|
18284
|
+
free() {
|
|
18285
|
+
const ptr = this.__destroy_into_raw();
|
|
18286
|
+
wasm.__wbg_rollingcovariance_free(ptr, 0);
|
|
18287
|
+
}
|
|
18288
|
+
/**
|
|
18289
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
18290
|
+
* input position (`NaN` during warmup).
|
|
18291
|
+
* @param {Float64Array} x
|
|
18292
|
+
* @param {Float64Array} y
|
|
18293
|
+
* @returns {Float64Array}
|
|
18294
|
+
*/
|
|
18295
|
+
batch(x, y) {
|
|
18296
|
+
try {
|
|
18297
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
18298
|
+
const ptr0 = passArrayF64ToWasm0(x, wasm.__wbindgen_export3);
|
|
18299
|
+
const len0 = WASM_VECTOR_LEN;
|
|
18300
|
+
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
18301
|
+
const len1 = WASM_VECTOR_LEN;
|
|
18302
|
+
wasm.rollingcovariance_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
18303
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18304
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
18305
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
18306
|
+
if (r2) {
|
|
18307
|
+
throw takeObject(r1);
|
|
18308
|
+
}
|
|
18309
|
+
return takeObject(r0);
|
|
18310
|
+
} finally {
|
|
18311
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
18312
|
+
}
|
|
18313
|
+
}
|
|
18314
|
+
/**
|
|
18315
|
+
* @returns {boolean}
|
|
18316
|
+
*/
|
|
18317
|
+
isReady() {
|
|
18318
|
+
const ret = wasm.rollingcovariance_isReady(this.__wbg_ptr);
|
|
18319
|
+
return ret !== 0;
|
|
18320
|
+
}
|
|
18321
|
+
/**
|
|
18322
|
+
* @param {number} period
|
|
18323
|
+
*/
|
|
18324
|
+
constructor(period) {
|
|
18325
|
+
try {
|
|
18326
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
18327
|
+
wasm.rollingcovariance_new(retptr, period);
|
|
18328
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18329
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
18330
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
18331
|
+
if (r2) {
|
|
18332
|
+
throw takeObject(r1);
|
|
18333
|
+
}
|
|
18334
|
+
this.__wbg_ptr = r0;
|
|
18335
|
+
RollingCovarianceFinalization.register(this, this.__wbg_ptr, this);
|
|
18336
|
+
return this;
|
|
18337
|
+
} finally {
|
|
18338
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
18339
|
+
}
|
|
18340
|
+
}
|
|
18341
|
+
reset() {
|
|
18342
|
+
wasm.rollingcovariance_reset(this.__wbg_ptr);
|
|
18343
|
+
}
|
|
18344
|
+
/**
|
|
18345
|
+
* @param {number} x
|
|
18346
|
+
* @param {number} y
|
|
18347
|
+
* @returns {number | undefined}
|
|
18348
|
+
*/
|
|
18349
|
+
update(x, y) {
|
|
18350
|
+
try {
|
|
18351
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
18352
|
+
wasm.rollingcovariance_update(retptr, this.__wbg_ptr, x, y);
|
|
18353
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18354
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
17640
18355
|
return r0 === 0 ? undefined : r2;
|
|
17641
18356
|
} finally {
|
|
17642
|
-
wasm.__wbindgen_add_to_stack_pointer(
|
|
18357
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
17643
18358
|
}
|
|
17644
18359
|
}
|
|
17645
18360
|
/**
|
|
17646
18361
|
* @returns {number}
|
|
17647
18362
|
*/
|
|
17648
18363
|
warmupPeriod() {
|
|
17649
|
-
const ret = wasm.
|
|
18364
|
+
const ret = wasm.rollingcovariance_warmupPeriod(this.__wbg_ptr);
|
|
17650
18365
|
return ret >>> 0;
|
|
17651
18366
|
}
|
|
17652
18367
|
}
|
|
17653
|
-
if (Symbol.dispose)
|
|
18368
|
+
if (Symbol.dispose) RollingCovariance.prototype[Symbol.dispose] = RollingCovariance.prototype.free;
|
|
17654
18369
|
|
|
17655
18370
|
export class RollingVWAP {
|
|
17656
18371
|
__destroy_into_raw() {
|
|
@@ -19077,6 +19792,187 @@ export class SpinningTop {
|
|
|
19077
19792
|
}
|
|
19078
19793
|
if (Symbol.dispose) SpinningTop.prototype[Symbol.dispose] = SpinningTop.prototype.free;
|
|
19079
19794
|
|
|
19795
|
+
export class SpreadBollingerBands {
|
|
19796
|
+
__destroy_into_raw() {
|
|
19797
|
+
const ptr = this.__wbg_ptr;
|
|
19798
|
+
this.__wbg_ptr = 0;
|
|
19799
|
+
SpreadBollingerBandsFinalization.unregister(this);
|
|
19800
|
+
return ptr;
|
|
19801
|
+
}
|
|
19802
|
+
free() {
|
|
19803
|
+
const ptr = this.__destroy_into_raw();
|
|
19804
|
+
wasm.__wbg_spreadbollingerbands_free(ptr, 0);
|
|
19805
|
+
}
|
|
19806
|
+
/**
|
|
19807
|
+
* Flat `Float64Array` of length `4 * n`:
|
|
19808
|
+
* `[middle0, upper0, lower0, percentB0, middle1, ...]`. Warmup rows are NaN.
|
|
19809
|
+
* @param {Float64Array} a
|
|
19810
|
+
* @param {Float64Array} b
|
|
19811
|
+
* @returns {Float64Array}
|
|
19812
|
+
*/
|
|
19813
|
+
batch(a, b) {
|
|
19814
|
+
try {
|
|
19815
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19816
|
+
const ptr0 = passArrayF64ToWasm0(a, wasm.__wbindgen_export3);
|
|
19817
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19818
|
+
const ptr1 = passArrayF64ToWasm0(b, wasm.__wbindgen_export3);
|
|
19819
|
+
const len1 = WASM_VECTOR_LEN;
|
|
19820
|
+
wasm.spreadbollingerbands_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
19821
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19822
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19823
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19824
|
+
if (r2) {
|
|
19825
|
+
throw takeObject(r1);
|
|
19826
|
+
}
|
|
19827
|
+
return takeObject(r0);
|
|
19828
|
+
} finally {
|
|
19829
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19830
|
+
}
|
|
19831
|
+
}
|
|
19832
|
+
/**
|
|
19833
|
+
* @returns {boolean}
|
|
19834
|
+
*/
|
|
19835
|
+
isReady() {
|
|
19836
|
+
const ret = wasm.spreadbollingerbands_isReady(this.__wbg_ptr);
|
|
19837
|
+
return ret !== 0;
|
|
19838
|
+
}
|
|
19839
|
+
/**
|
|
19840
|
+
* @param {number} period
|
|
19841
|
+
* @param {number} num_std
|
|
19842
|
+
*/
|
|
19843
|
+
constructor(period, num_std) {
|
|
19844
|
+
try {
|
|
19845
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19846
|
+
wasm.spreadbollingerbands_new(retptr, period, num_std);
|
|
19847
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19848
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19849
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19850
|
+
if (r2) {
|
|
19851
|
+
throw takeObject(r1);
|
|
19852
|
+
}
|
|
19853
|
+
this.__wbg_ptr = r0;
|
|
19854
|
+
SpreadBollingerBandsFinalization.register(this, this.__wbg_ptr, this);
|
|
19855
|
+
return this;
|
|
19856
|
+
} finally {
|
|
19857
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19858
|
+
}
|
|
19859
|
+
}
|
|
19860
|
+
reset() {
|
|
19861
|
+
wasm.spreadbollingerbands_reset(this.__wbg_ptr);
|
|
19862
|
+
}
|
|
19863
|
+
/**
|
|
19864
|
+
* Returns `{ middle, upper, lower, percentB }`, or `null` during warmup.
|
|
19865
|
+
* @param {number} a
|
|
19866
|
+
* @param {number} b
|
|
19867
|
+
* @returns {any}
|
|
19868
|
+
*/
|
|
19869
|
+
update(a, b) {
|
|
19870
|
+
const ret = wasm.spreadbollingerbands_update(this.__wbg_ptr, a, b);
|
|
19871
|
+
return takeObject(ret);
|
|
19872
|
+
}
|
|
19873
|
+
/**
|
|
19874
|
+
* @returns {number}
|
|
19875
|
+
*/
|
|
19876
|
+
warmupPeriod() {
|
|
19877
|
+
const ret = wasm.spreadbollingerbands_warmupPeriod(this.__wbg_ptr);
|
|
19878
|
+
return ret >>> 0;
|
|
19879
|
+
}
|
|
19880
|
+
}
|
|
19881
|
+
if (Symbol.dispose) SpreadBollingerBands.prototype[Symbol.dispose] = SpreadBollingerBands.prototype.free;
|
|
19882
|
+
|
|
19883
|
+
export class SpreadHurst {
|
|
19884
|
+
__destroy_into_raw() {
|
|
19885
|
+
const ptr = this.__wbg_ptr;
|
|
19886
|
+
this.__wbg_ptr = 0;
|
|
19887
|
+
SpreadHurstFinalization.unregister(this);
|
|
19888
|
+
return ptr;
|
|
19889
|
+
}
|
|
19890
|
+
free() {
|
|
19891
|
+
const ptr = this.__destroy_into_raw();
|
|
19892
|
+
wasm.__wbg_spreadhurst_free(ptr, 0);
|
|
19893
|
+
}
|
|
19894
|
+
/**
|
|
19895
|
+
* Batch over two equally-sized arrays. Returns one `f64` per
|
|
19896
|
+
* input position (`NaN` during warmup).
|
|
19897
|
+
* @param {Float64Array} x
|
|
19898
|
+
* @param {Float64Array} y
|
|
19899
|
+
* @returns {Float64Array}
|
|
19900
|
+
*/
|
|
19901
|
+
batch(x, y) {
|
|
19902
|
+
try {
|
|
19903
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19904
|
+
const ptr0 = passArrayF64ToWasm0(x, wasm.__wbindgen_export3);
|
|
19905
|
+
const len0 = WASM_VECTOR_LEN;
|
|
19906
|
+
const ptr1 = passArrayF64ToWasm0(y, wasm.__wbindgen_export3);
|
|
19907
|
+
const len1 = WASM_VECTOR_LEN;
|
|
19908
|
+
wasm.spreadhurst_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
19909
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19910
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19911
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19912
|
+
if (r2) {
|
|
19913
|
+
throw takeObject(r1);
|
|
19914
|
+
}
|
|
19915
|
+
return takeObject(r0);
|
|
19916
|
+
} finally {
|
|
19917
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19918
|
+
}
|
|
19919
|
+
}
|
|
19920
|
+
/**
|
|
19921
|
+
* @returns {boolean}
|
|
19922
|
+
*/
|
|
19923
|
+
isReady() {
|
|
19924
|
+
const ret = wasm.spreadhurst_isReady(this.__wbg_ptr);
|
|
19925
|
+
return ret !== 0;
|
|
19926
|
+
}
|
|
19927
|
+
/**
|
|
19928
|
+
* @param {number} period
|
|
19929
|
+
*/
|
|
19930
|
+
constructor(period) {
|
|
19931
|
+
try {
|
|
19932
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19933
|
+
wasm.spreadhurst_new(retptr, period);
|
|
19934
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19935
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19936
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
19937
|
+
if (r2) {
|
|
19938
|
+
throw takeObject(r1);
|
|
19939
|
+
}
|
|
19940
|
+
this.__wbg_ptr = r0;
|
|
19941
|
+
SpreadHurstFinalization.register(this, this.__wbg_ptr, this);
|
|
19942
|
+
return this;
|
|
19943
|
+
} finally {
|
|
19944
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19945
|
+
}
|
|
19946
|
+
}
|
|
19947
|
+
reset() {
|
|
19948
|
+
wasm.spreadhurst_reset(this.__wbg_ptr);
|
|
19949
|
+
}
|
|
19950
|
+
/**
|
|
19951
|
+
* @param {number} x
|
|
19952
|
+
* @param {number} y
|
|
19953
|
+
* @returns {number | undefined}
|
|
19954
|
+
*/
|
|
19955
|
+
update(x, y) {
|
|
19956
|
+
try {
|
|
19957
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
19958
|
+
wasm.spreadhurst_update(retptr, this.__wbg_ptr, x, y);
|
|
19959
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
19960
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
19961
|
+
return r0 === 0 ? undefined : r2;
|
|
19962
|
+
} finally {
|
|
19963
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
19964
|
+
}
|
|
19965
|
+
}
|
|
19966
|
+
/**
|
|
19967
|
+
* @returns {number}
|
|
19968
|
+
*/
|
|
19969
|
+
warmupPeriod() {
|
|
19970
|
+
const ret = wasm.spreadhurst_warmupPeriod(this.__wbg_ptr);
|
|
19971
|
+
return ret >>> 0;
|
|
19972
|
+
}
|
|
19973
|
+
}
|
|
19974
|
+
if (Symbol.dispose) SpreadHurst.prototype[Symbol.dispose] = SpreadHurst.prototype.free;
|
|
19975
|
+
|
|
19080
19976
|
export class StalledPattern {
|
|
19081
19977
|
__destroy_into_raw() {
|
|
19082
19978
|
const ptr = this.__wbg_ptr;
|
|
@@ -24330,6 +25226,100 @@ export class Variance {
|
|
|
24330
25226
|
}
|
|
24331
25227
|
if (Symbol.dispose) Variance.prototype[Symbol.dispose] = Variance.prototype.free;
|
|
24332
25228
|
|
|
25229
|
+
export class VarianceRatio {
|
|
25230
|
+
__destroy_into_raw() {
|
|
25231
|
+
const ptr = this.__wbg_ptr;
|
|
25232
|
+
this.__wbg_ptr = 0;
|
|
25233
|
+
VarianceRatioFinalization.unregister(this);
|
|
25234
|
+
return ptr;
|
|
25235
|
+
}
|
|
25236
|
+
free() {
|
|
25237
|
+
const ptr = this.__destroy_into_raw();
|
|
25238
|
+
wasm.__wbg_varianceratio_free(ptr, 0);
|
|
25239
|
+
}
|
|
25240
|
+
/**
|
|
25241
|
+
* Batch over two equally-sized arrays of prices. Returns one `f64` per
|
|
25242
|
+
* input position (`NaN` during warmup).
|
|
25243
|
+
* @param {Float64Array} a
|
|
25244
|
+
* @param {Float64Array} b
|
|
25245
|
+
* @returns {Float64Array}
|
|
25246
|
+
*/
|
|
25247
|
+
batch(a, b) {
|
|
25248
|
+
try {
|
|
25249
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
25250
|
+
const ptr0 = passArrayF64ToWasm0(a, wasm.__wbindgen_export3);
|
|
25251
|
+
const len0 = WASM_VECTOR_LEN;
|
|
25252
|
+
const ptr1 = passArrayF64ToWasm0(b, wasm.__wbindgen_export3);
|
|
25253
|
+
const len1 = WASM_VECTOR_LEN;
|
|
25254
|
+
wasm.varianceratio_batch(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
25255
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
25256
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
25257
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
25258
|
+
if (r2) {
|
|
25259
|
+
throw takeObject(r1);
|
|
25260
|
+
}
|
|
25261
|
+
return takeObject(r0);
|
|
25262
|
+
} finally {
|
|
25263
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
25264
|
+
}
|
|
25265
|
+
}
|
|
25266
|
+
/**
|
|
25267
|
+
* @returns {boolean}
|
|
25268
|
+
*/
|
|
25269
|
+
isReady() {
|
|
25270
|
+
const ret = wasm.varianceratio_isReady(this.__wbg_ptr);
|
|
25271
|
+
return ret !== 0;
|
|
25272
|
+
}
|
|
25273
|
+
/**
|
|
25274
|
+
* @param {number} period
|
|
25275
|
+
* @param {number} q
|
|
25276
|
+
*/
|
|
25277
|
+
constructor(period, q) {
|
|
25278
|
+
try {
|
|
25279
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
25280
|
+
wasm.varianceratio_new(retptr, period, q);
|
|
25281
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
25282
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
25283
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
25284
|
+
if (r2) {
|
|
25285
|
+
throw takeObject(r1);
|
|
25286
|
+
}
|
|
25287
|
+
this.__wbg_ptr = r0;
|
|
25288
|
+
VarianceRatioFinalization.register(this, this.__wbg_ptr, this);
|
|
25289
|
+
return this;
|
|
25290
|
+
} finally {
|
|
25291
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
25292
|
+
}
|
|
25293
|
+
}
|
|
25294
|
+
reset() {
|
|
25295
|
+
wasm.varianceratio_reset(this.__wbg_ptr);
|
|
25296
|
+
}
|
|
25297
|
+
/**
|
|
25298
|
+
* @param {number} a
|
|
25299
|
+
* @param {number} b
|
|
25300
|
+
* @returns {number | undefined}
|
|
25301
|
+
*/
|
|
25302
|
+
update(a, b) {
|
|
25303
|
+
try {
|
|
25304
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
25305
|
+
wasm.varianceratio_update(retptr, this.__wbg_ptr, a, b);
|
|
25306
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
25307
|
+
var r2 = getDataViewMemory0().getFloat64(retptr + 8 * 1, true);
|
|
25308
|
+
return r0 === 0 ? undefined : r2;
|
|
25309
|
+
} finally {
|
|
25310
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
25311
|
+
}
|
|
25312
|
+
}
|
|
25313
|
+
/**
|
|
25314
|
+
* @returns {number}
|
|
25315
|
+
*/
|
|
25316
|
+
warmupPeriod() {
|
|
25317
|
+
const ret = wasm.varianceratio_warmupPeriod(this.__wbg_ptr);
|
|
25318
|
+
return ret >>> 0;
|
|
25319
|
+
}
|
|
25320
|
+
}
|
|
25321
|
+
if (Symbol.dispose) VarianceRatio.prototype[Symbol.dispose] = VarianceRatio.prototype.free;
|
|
25322
|
+
|
|
24333
25323
|
export class VerticalHorizontalFilter {
|
|
24334
25324
|
__destroy_into_raw() {
|
|
24335
25325
|
const ptr = this.__wbg_ptr;
|
|
@@ -26167,6 +27157,9 @@ const ADLFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
26167
27157
|
const AdvanceBlockFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26168
27158
|
? { register: () => {}, unregister: () => {} }
|
|
26169
27159
|
: new FinalizationRegistry(ptr => wasm.__wbg_advanceblock_free(ptr, 1));
|
|
27160
|
+
const AdvanceDeclineFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27161
|
+
? { register: () => {}, unregister: () => {} }
|
|
27162
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_advancedecline_free(ptr, 1));
|
|
26170
27163
|
const ADXFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26171
27164
|
? { register: () => {}, unregister: () => {} }
|
|
26172
27165
|
: new FinalizationRegistry(ptr => wasm.__wbg_adx_free(ptr, 1));
|
|
@@ -26233,6 +27226,9 @@ const BeltHoldFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
26233
27226
|
const BetaFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26234
27227
|
? { register: () => {}, unregister: () => {} }
|
|
26235
27228
|
: new FinalizationRegistry(ptr => wasm.__wbg_beta_free(ptr, 1));
|
|
27229
|
+
const BetaNeutralSpreadFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27230
|
+
? { register: () => {}, unregister: () => {} }
|
|
27231
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_betaneutralspread_free(ptr, 1));
|
|
26236
27232
|
const BollingerBandwidthFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26237
27233
|
? { register: () => {}, unregister: () => {} }
|
|
26238
27234
|
: new FinalizationRegistry(ptr => wasm.__wbg_bollingerbandwidth_free(ptr, 1));
|
|
@@ -26332,6 +27328,9 @@ const DepthSlopeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
26332
27328
|
const DetrendedStdDevFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26333
27329
|
? { register: () => {}, unregister: () => {} }
|
|
26334
27330
|
: new FinalizationRegistry(ptr => wasm.__wbg_detrendedstddev_free(ptr, 1));
|
|
27331
|
+
const DistanceSsdFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27332
|
+
? { register: () => {}, unregister: () => {} }
|
|
27333
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_distancessd_free(ptr, 1));
|
|
26335
27334
|
const DojiFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26336
27335
|
? { register: () => {}, unregister: () => {} }
|
|
26337
27336
|
: new FinalizationRegistry(ptr => wasm.__wbg_doji_free(ptr, 1));
|
|
@@ -26434,6 +27433,9 @@ const GapSideBySideWhiteFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
26434
27433
|
const GarmanKlassVolatilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26435
27434
|
? { register: () => {}, unregister: () => {} }
|
|
26436
27435
|
: new FinalizationRegistry(ptr => wasm.__wbg_garmanklassvolatility_free(ptr, 1));
|
|
27436
|
+
const GrangerCausalityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27437
|
+
? { register: () => {}, unregister: () => {} }
|
|
27438
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_grangercausality_free(ptr, 1));
|
|
26437
27439
|
const GravestoneDojiFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26438
27440
|
? { register: () => {}, unregister: () => {} }
|
|
26439
27441
|
: new FinalizationRegistry(ptr => wasm.__wbg_gravestonedoji_free(ptr, 1));
|
|
@@ -26521,6 +27523,9 @@ const JMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
26521
27523
|
const KagiBarsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26522
27524
|
? { register: () => {}, unregister: () => {} }
|
|
26523
27525
|
: new FinalizationRegistry(ptr => wasm.__wbg_kagibars_free(ptr, 1));
|
|
27526
|
+
const KalmanHedgeRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27527
|
+
? { register: () => {}, unregister: () => {} }
|
|
27528
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_kalmanhedgeratio_free(ptr, 1));
|
|
26524
27529
|
const KAMAFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26525
27530
|
? { register: () => {}, unregister: () => {} }
|
|
26526
27531
|
: new FinalizationRegistry(ptr => wasm.__wbg_kama_free(ptr, 1));
|
|
@@ -26692,6 +27697,9 @@ const OrderBookImbalanceTop1Finalization = (typeof FinalizationRegistry === 'und
|
|
|
26692
27697
|
const OrderBookImbalanceTopNFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26693
27698
|
? { register: () => {}, unregister: () => {} }
|
|
26694
27699
|
: new FinalizationRegistry(ptr => wasm.__wbg_orderbookimbalancetopn_free(ptr, 1));
|
|
27700
|
+
const OuHalfLifeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27701
|
+
? { register: () => {}, unregister: () => {} }
|
|
27702
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_ouhalflife_free(ptr, 1));
|
|
26695
27703
|
const PainIndexFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26696
27704
|
? { register: () => {}, unregister: () => {} }
|
|
26697
27705
|
: new FinalizationRegistry(ptr => wasm.__wbg_painindex_free(ptr, 1));
|
|
@@ -26785,6 +27793,12 @@ const ROCR100Finalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
26785
27793
|
const RogersSatchellVolatilityFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26786
27794
|
? { register: () => {}, unregister: () => {} }
|
|
26787
27795
|
: new FinalizationRegistry(ptr => wasm.__wbg_rogerssatchellvolatility_free(ptr, 1));
|
|
27796
|
+
const RollingCorrelationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27797
|
+
? { register: () => {}, unregister: () => {} }
|
|
27798
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rollingcorrelation_free(ptr, 1));
|
|
27799
|
+
const RollingCovarianceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27800
|
+
? { register: () => {}, unregister: () => {} }
|
|
27801
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rollingcovariance_free(ptr, 1));
|
|
26788
27802
|
const RollingVWAPFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26789
27803
|
? { register: () => {}, unregister: () => {} }
|
|
26790
27804
|
: new FinalizationRegistry(ptr => wasm.__wbg_rollingvwap_free(ptr, 1));
|
|
@@ -26845,6 +27859,12 @@ const SpearmanCorrelationFinalization = (typeof FinalizationRegistry === 'undefi
|
|
|
26845
27859
|
const SpinningTopFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26846
27860
|
? { register: () => {}, unregister: () => {} }
|
|
26847
27861
|
: new FinalizationRegistry(ptr => wasm.__wbg_spinningtop_free(ptr, 1));
|
|
27862
|
+
const SpreadBollingerBandsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27863
|
+
? { register: () => {}, unregister: () => {} }
|
|
27864
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_spreadbollingerbands_free(ptr, 1));
|
|
27865
|
+
const SpreadHurstFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27866
|
+
? { register: () => {}, unregister: () => {} }
|
|
27867
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_spreadhurst_free(ptr, 1));
|
|
26848
27868
|
const StalledPatternFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
26849
27869
|
? { register: () => {}, unregister: () => {} }
|
|
26850
27870
|
: new FinalizationRegistry(ptr => wasm.__wbg_stalledpattern_free(ptr, 1));
|
|
@@ -27019,6 +28039,9 @@ const ValueAtRiskFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
27019
28039
|
const VarianceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27020
28040
|
? { register: () => {}, unregister: () => {} }
|
|
27021
28041
|
: new FinalizationRegistry(ptr => wasm.__wbg_variance_free(ptr, 1));
|
|
28042
|
+
const VarianceRatioFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
28043
|
+
? { register: () => {}, unregister: () => {} }
|
|
28044
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_varianceratio_free(ptr, 1));
|
|
27022
28045
|
const VerticalHorizontalFilterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
27023
28046
|
? { register: () => {}, unregister: () => {} }
|
|
27024
28047
|
: new FinalizationRegistry(ptr => wasm.__wbg_verticalhorizontalfilter_free(ptr, 1));
|