@thi.ng/transducers-stats 2.2.60 → 2.2.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.
- package/README.md +36 -35
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
|
-
<!-- Please see: https://
|
|
3
|
-
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/transducers-stats)
|
|
6
6
|

|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
10
|
> This is one of 214 standalone projects, maintained as part
|
|
11
|
-
> of the [@thi.ng/umbrella](https://
|
|
11
|
+
> of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
14
|
-
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
-
>
|
|
14
|
+
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
+
> me](https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#donations).
|
|
16
|
+
> Thank you! ❤️
|
|
16
17
|
|
|
17
18
|
- [About](#about)
|
|
18
19
|
- [Supported indicators](#supported-indicators)
|
|
@@ -26,10 +27,10 @@
|
|
|
26
27
|
|
|
27
28
|
## About
|
|
28
29
|
|
|
29
|
-
Transducers for statistical / technical analysis. This is a support package for [@thi.ng/transducers](https://
|
|
30
|
+
Transducers for statistical / technical analysis. This is a support package for [@thi.ng/transducers](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers).
|
|
30
31
|
|
|
31
32
|
This package provides a set of
|
|
32
|
-
[transducers](https://
|
|
33
|
+
[transducers](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers)
|
|
33
34
|
for [technical
|
|
34
35
|
(financial)](https://en.wikipedia.org/wiki/Technical_indicator) and
|
|
35
36
|
statistical analysis and replaces the older
|
|
@@ -43,27 +44,27 @@ transforming ES6 iterator (generator) instead of a transducer.
|
|
|
43
44
|
|
|
44
45
|
## Supported indicators
|
|
45
46
|
|
|
46
|
-
- [Bollinger Bands](https://
|
|
47
|
-
- [Donchian Channel](https://
|
|
48
|
-
- [EMA (Exponential Moving Average)](https://
|
|
49
|
-
- [HMA (Hull Moving Average)](https://
|
|
50
|
-
- [MACD (Moving Average Convergence/Divergence)](https://
|
|
51
|
-
- [Momentum](https://
|
|
52
|
-
- [Moving Maximum](https://
|
|
53
|
-
- [Moving Minimum](https://
|
|
54
|
-
- [ROC (Rate of change)](https://
|
|
55
|
-
- [RSI (Relative Strength Index)](https://
|
|
56
|
-
- [SD (Standard Deviation)](https://
|
|
57
|
-
- [SMA (Simple Moving Average)](https://
|
|
58
|
-
- [Stochastic oscillator](https://
|
|
59
|
-
- [TRIX (Triple smoothed EMA)](https://
|
|
60
|
-
- [WMA (Weighted Moving Average)](https://
|
|
47
|
+
- [Bollinger Bands](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers-stats/src/bollinger.ts)
|
|
48
|
+
- [Donchian Channel](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers-stats/src/donchian.ts)
|
|
49
|
+
- [EMA (Exponential Moving Average)](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers-stats/src/ema.ts)
|
|
50
|
+
- [HMA (Hull Moving Average)](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers-stats/src/hma.ts)
|
|
51
|
+
- [MACD (Moving Average Convergence/Divergence)](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers-stats/src/macd.ts)
|
|
52
|
+
- [Momentum](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers-stats/src/momentum.ts)
|
|
53
|
+
- [Moving Maximum](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers-stats/src/moving-maximum.ts)
|
|
54
|
+
- [Moving Minimum](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers-stats/src/moving-minimum.ts)
|
|
55
|
+
- [ROC (Rate of change)](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers-stats/src/roc.ts)
|
|
56
|
+
- [RSI (Relative Strength Index)](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers-stats/src/rsi.ts)
|
|
57
|
+
- [SD (Standard Deviation)](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers-stats/src/sd.ts)
|
|
58
|
+
- [SMA (Simple Moving Average)](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers-stats/src/sma.ts)
|
|
59
|
+
- [Stochastic oscillator](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers-stats/src/stochastic.ts)
|
|
60
|
+
- [TRIX (Triple smoothed EMA)](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers-stats/src/trix.ts)
|
|
61
|
+
- [WMA (Weighted Moving Average)](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers-stats/src/wma.ts)
|
|
61
62
|
|
|
62
63
|
## Status
|
|
63
64
|
|
|
64
65
|
**STABLE** - used in production
|
|
65
66
|
|
|
66
|
-
[Search or submit any issues for this package](https://
|
|
67
|
+
[Search or submit any issues for this package](https://codeberg.org/thi.ng/umbrella/issues?q=%5Btransducers-stats%5D)
|
|
67
68
|
|
|
68
69
|
## Installation
|
|
69
70
|
|
|
@@ -95,26 +96,26 @@ Package sizes (brotli'd, pre-treeshake): ESM: 1.74 KB
|
|
|
95
96
|
|
|
96
97
|
## Dependencies
|
|
97
98
|
|
|
98
|
-
- [@thi.ng/api](https://
|
|
99
|
-
- [@thi.ng/buffers](https://
|
|
100
|
-
- [@thi.ng/checks](https://
|
|
101
|
-
- [@thi.ng/errors](https://
|
|
102
|
-
- [@thi.ng/transducers](https://
|
|
99
|
+
- [@thi.ng/api](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/api)
|
|
100
|
+
- [@thi.ng/buffers](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/buffers)
|
|
101
|
+
- [@thi.ng/checks](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/checks)
|
|
102
|
+
- [@thi.ng/errors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/errors)
|
|
103
|
+
- [@thi.ng/transducers](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers)
|
|
103
104
|
|
|
104
105
|
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
105
106
|
|
|
106
107
|
## Usage examples
|
|
107
108
|
|
|
108
109
|
Four projects in this repo's
|
|
109
|
-
[/examples](https://
|
|
110
|
+
[/examples](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples)
|
|
110
111
|
directory are using this package:
|
|
111
112
|
|
|
112
|
-
| Screenshot | Description | Live demo | Source
|
|
113
|
-
|
|
114
|
-
| <img src="https://
|
|
115
|
-
| <img src="https://
|
|
116
|
-
| <img src="https://
|
|
117
|
-
| <img src="https://
|
|
113
|
+
| Screenshot | Description | Live demo | Source |
|
|
114
|
+
|:--------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------|:---------------------------------------------------------|:----------------------------------------------------------------------------------------------|
|
|
115
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/ascii-raymarch.jpg" width="240"/> | ASCII art raymarching with thi.ng/shader-ast & thi.ng/text-canvas | [Demo](https://demo.thi.ng/umbrella/ascii-raymarch/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/ascii-raymarch) |
|
|
116
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/crypto-chart.png" width="240"/> | Basic crypto-currency candle chart with multiple moving averages plots | [Demo](https://demo.thi.ng/umbrella/crypto-chart/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/crypto-chart) |
|
|
117
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/optical-flow.avif" width="240"/> | Optical flow analysis of web cam or video inputs | [Demo](https://demo.thi.ng/umbrella/optical-flow/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/optical-flow) |
|
|
118
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/shader-ast-workers.jpg" width="240"/> | Fork-join worker-based raymarch renderer (JS/CPU only) | [Demo](https://demo.thi.ng/umbrella/shader-ast-workers/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/shader-ast-workers) |
|
|
118
119
|
|
|
119
120
|
## API
|
|
120
121
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/transducers-stats",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.61",
|
|
4
4
|
"description": "Transducers for statistical / technical analysis",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://
|
|
11
|
+
"url": "git+https://codeberg.org/thi.ng/umbrella.git",
|
|
12
12
|
"directory": "packages/transducers-stats"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://thi.ng/transducers-stats",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.12.
|
|
44
|
-
"@thi.ng/buffers": "^1.0.
|
|
45
|
-
"@thi.ng/checks": "^3.8.
|
|
46
|
-
"@thi.ng/errors": "^2.6.
|
|
47
|
-
"@thi.ng/transducers": "^9.6.
|
|
43
|
+
"@thi.ng/api": "^8.12.18",
|
|
44
|
+
"@thi.ng/buffers": "^1.0.37",
|
|
45
|
+
"@thi.ng/checks": "^3.8.8",
|
|
46
|
+
"@thi.ng/errors": "^2.6.7",
|
|
47
|
+
"@thi.ng/transducers": "^9.6.31"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"esbuild": "^0.27.2",
|
|
@@ -149,5 +149,5 @@
|
|
|
149
149
|
"parent": "@thi.ng/transducers",
|
|
150
150
|
"year": 2017
|
|
151
151
|
},
|
|
152
|
-
"gitHead": "
|
|
152
|
+
"gitHead": "8ddf86ea0a1e658ddbf19cc645b29d0c176e29c4\n"
|
|
153
153
|
}
|