qntjs-lib 1.1.0 → 1.1.1

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  # qntjs-lib
2
2
 
3
- High-performance JavaScript and TypeScript library of technical‑analysis indicators, array utilities, and numerical helpers.
3
+ A pure fast JavaScript/TypeScript library of technical‑analysis indicators, trading performance/risk metrics, array utilities, and numerical helpers.
4
4
 
5
- This repository implements a wide set of TA indicators (EMA, TEMA, T3, MFI, KAMA, etc.), vectorized math functions, and statistical helpers. Implementations are optimized for two common usage patterns:
5
+ This repository implements a wide set of TA indicators (EMA, TEMA, T3, MFI, KAMA, etc.), common trading performance metrics/utilities, vectorized math functions, and statistical helpers. Where applicable, implementations are optimized for two common usage patterns:
6
6
 
7
7
  - NaN‑aware workflows (default): functions are NaN‑aware and will skip NaN values where appropriate.
8
8
  - Dense fast‑path: when you know inputs contain no NaNs you can opt into a dense, faster implementation by passing `skipna=false` to supported functions.
9
9
 
10
10
  By default the main (typed) build returns typed arrays (e.g. `Float64Array`) for better numeric performance and predictable memory layout. A companion "untyped" build exposes the same API but returns plain `number[]` values for easier interoperability with plain JavaScript code.
11
11
 
12
- The library has no runtime dependencies and is zero-dependency by design. It can be used in browser web applications or in Node.js environments that support ESM imports.
12
+ The library has no runtime dependencies. It can be used in browser web applications or in Node.js environments that support ESM imports.
13
13
 
14
14
  ## Quick Start
15
15
 
@@ -118,7 +118,7 @@ const filled = arr.ffill(a);
118
118
  ## List of available API
119
119
 
120
120
  - **`arr.*`** : `isna`, `notna`, `fillna`, `ffill`, `bfill`, `replace`, `dropna`, `allna`, `equals`, `countna`, `havena`, `lag`
121
-
121
+
122
122
  - **`math.*`** : `add`, `sub`, `avg`, `mul`, `div`, `scale`, `abs`, `sign`, `round`, `floor`, `ceil`, `eq`, `neq`, `gt`, `gte`, `lt`, `lte`, `and`, `or`, `not`, `clamp`, `sum`, `prod`, `min`, `max`, `argmin`, `argmax`, `cumsum`, `cumprod`, `cummax`, `cummin`, `rollsum`, `rollmin`, `rollmax`, `rollminmax`, `rollprod`, `rollargmin`, `rollargmax`, `diff`, `randuniform`, `randnormal`, `dot`, `norm`, `ols`, `olsMulti`
123
123
 
124
124
  - **`stats.*`** : `mean`, `hmean`, `gmean`, `mad`, `skew`, `kurtosis`, `median`, `quantile`, `percentiles`, `var`, `covar`, `stdev`, `corr`, `zscore`, `norminmax`, `winsorize`, `sample`, `shuffle`, `bootstrap`
@@ -1,5 +1,5 @@
1
- import { cagr, cumreturns, logreturns, returns, dailyReturns } from './returns.js';
2
- import { dd, dduration, maxdd, recoveryFactor, calmarRatio, DrawdownDurationResult, MaxDrawdownInfo, rollmaxdd, ulcerIndex, rollUlcerIndex, maxddDetails } from './dd.js';
3
- import { sharpe, sortino, rollsharpe, rollsortino, vol, rollvol } from './volatility.js';
4
- import { valueAtRisk, expectedShortfall, omegaRatio, tailRatio } from './distribution.js';
5
- export { cagr, returns, logreturns, cumreturns, dd, dduration, maxdd, maxddDetails, recoveryFactor, calmarRatio, rollmaxdd, ulcerIndex, rollUlcerIndex, sharpe, sortino, rollsharpe, rollsortino, valueAtRisk, expectedShortfall, omegaRatio, tailRatio, dailyReturns, vol, rollvol, DrawdownDurationResult, MaxDrawdownInfo };
1
+ export { cagr, cumreturns, logreturns, returns, dailyReturns } from './returns.js';
2
+ export { dd, dduration, maxdd, maxddDetails, recoveryFactor, calmarRatio, rollmaxdd, ulcerIndex, rollUlcerIndex } from './dd.js';
3
+ export type { DrawdownDurationResult, MaxDrawdownInfo } from './dd.js';
4
+ export { sharpe, sortino, rollsharpe, rollsortino, vol, rollvol } from './volatility.js';
5
+ export { valueAtRisk, expectedShortfall, omegaRatio, tailRatio } from './distribution.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qntjs-lib",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "main": "./dist/bundle/index.js",
6
6
  "types": "./dist/index.d.ts",