@mojir/lits 2.1.25 → 2.1.27
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/dist/cli/cli.js +45 -43
- package/dist/index.esm.js +44 -42
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +44 -42
- package/dist/index.js.map +1 -1
- package/dist/lits.iife.js +44 -42
- package/dist/lits.iife.js.map +1 -1
- package/dist/testFramework.esm.js +44 -42
- package/dist/testFramework.esm.js.map +1 -1
- package/dist/testFramework.js +44 -42
- package/dist/testFramework.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11228,8 +11228,10 @@ function randn() {
|
|
|
11228
11228
|
|
|
11229
11229
|
function generateDocString(reference) {
|
|
11230
11230
|
return smartTrim("\n ".concat(reference.title).concat(getAliases(reference), "\n\n ").concat(reference.description
|
|
11231
|
-
.replace(/`(
|
|
11232
|
-
.replace(/\$(\w+)/g, '$1')
|
|
11231
|
+
.replace(/`(.+?)`/g, '$1')
|
|
11232
|
+
.replace(/\$(\w+)/g, '$1')
|
|
11233
|
+
.replace(/\*\*\*(.+)\*\*\*/g, '$1')
|
|
11234
|
+
.replace(/\*\*(.+)\*\*/g, '$1'), "\n\n Signature:\n ").concat(signature(reference).join('\n '), "\n\n Arguments:\n ").concat(argStrings(reference).join('\n '), "\n \n Examples:\n").concat(reference.examples.map(function (example) { return smartTrim(example, 4); }).join('\n\n')));
|
|
11233
11235
|
}
|
|
11234
11236
|
function signature(_a) {
|
|
11235
11237
|
var title = _a.title, variants = _a.variants, args = _a.args, returns = _a.returns, _isOperator = _a._isOperator;
|
|
@@ -27535,7 +27537,7 @@ var meanReference = {
|
|
|
27535
27537
|
'vec:moving-mean': {
|
|
27536
27538
|
title: 'vec:moving-mean',
|
|
27537
27539
|
category: 'Vector',
|
|
27538
|
-
description: 'Returns the **moving mean
|
|
27540
|
+
description: 'Returns the **moving mean** of the `vector` with a given window size.',
|
|
27539
27541
|
returns: {
|
|
27540
27542
|
type: 'vector',
|
|
27541
27543
|
},
|
|
@@ -27557,7 +27559,7 @@ var meanReference = {
|
|
|
27557
27559
|
'vec:centered-moving-mean': {
|
|
27558
27560
|
title: 'vec:centered-moving-mean',
|
|
27559
27561
|
category: 'Vector',
|
|
27560
|
-
description: 'Returns the **centered moving mean
|
|
27562
|
+
description: 'Returns the **centered moving mean** of the `vector` with a given window size.',
|
|
27561
27563
|
returns: {
|
|
27562
27564
|
type: 'array',
|
|
27563
27565
|
},
|
|
@@ -27588,7 +27590,7 @@ var meanReference = {
|
|
|
27588
27590
|
'vec:running-mean': {
|
|
27589
27591
|
title: 'vec:running-mean',
|
|
27590
27592
|
category: 'Vector',
|
|
27591
|
-
description: 'Returns the **running mean
|
|
27593
|
+
description: 'Returns the **running mean** of the `vector`.',
|
|
27592
27594
|
returns: {
|
|
27593
27595
|
type: 'vector',
|
|
27594
27596
|
},
|
|
@@ -27631,7 +27633,7 @@ var geometricMeanReference = {
|
|
|
27631
27633
|
'vec:moving-geometric-mean': {
|
|
27632
27634
|
title: 'vec:moving-geometric-mean',
|
|
27633
27635
|
category: 'Vector',
|
|
27634
|
-
description: 'Returns the **moving geometric mean
|
|
27636
|
+
description: 'Returns the **moving geometric mean** of the `vector` with a given window size.',
|
|
27635
27637
|
returns: {
|
|
27636
27638
|
type: 'vector',
|
|
27637
27639
|
},
|
|
@@ -27653,7 +27655,7 @@ var geometricMeanReference = {
|
|
|
27653
27655
|
'vec:centered-moving-geometric-mean': {
|
|
27654
27656
|
title: 'vec:centered-moving-geometric-mean',
|
|
27655
27657
|
category: 'Vector',
|
|
27656
|
-
description: 'Returns the **centered moving geometric mean
|
|
27658
|
+
description: 'Returns the **centered moving geometric mean** of the `vector` with a given window size.',
|
|
27657
27659
|
returns: {
|
|
27658
27660
|
type: 'array',
|
|
27659
27661
|
},
|
|
@@ -27684,7 +27686,7 @@ var geometricMeanReference = {
|
|
|
27684
27686
|
'vec:running-geometric-mean': {
|
|
27685
27687
|
title: 'vec:running-geometric-mean',
|
|
27686
27688
|
category: 'Vector',
|
|
27687
|
-
description: 'Returns the **running geometric mean
|
|
27689
|
+
description: 'Returns the **running geometric mean** of the `vector`.',
|
|
27688
27690
|
returns: {
|
|
27689
27691
|
type: 'vector',
|
|
27690
27692
|
},
|
|
@@ -27727,7 +27729,7 @@ var harmonicMeanReference = {
|
|
|
27727
27729
|
'vec:moving-harmonic-mean': {
|
|
27728
27730
|
title: 'vec:moving-harmonic-mean',
|
|
27729
27731
|
category: 'Vector',
|
|
27730
|
-
description: 'Returns the **moving harmonic mean
|
|
27732
|
+
description: 'Returns the **moving harmonic mean** of the `vector` with a given window size.',
|
|
27731
27733
|
returns: {
|
|
27732
27734
|
type: 'vector',
|
|
27733
27735
|
},
|
|
@@ -27749,7 +27751,7 @@ var harmonicMeanReference = {
|
|
|
27749
27751
|
'vec:centered-moving-harmonic-mean': {
|
|
27750
27752
|
title: 'vec:centered-moving-harmonic-mean',
|
|
27751
27753
|
category: 'Vector',
|
|
27752
|
-
description: 'Returns the **centered moving harmonic mean
|
|
27754
|
+
description: 'Returns the **centered moving harmonic mean** of the `vector` with a given window size.',
|
|
27753
27755
|
returns: {
|
|
27754
27756
|
type: 'array',
|
|
27755
27757
|
},
|
|
@@ -27780,7 +27782,7 @@ var harmonicMeanReference = {
|
|
|
27780
27782
|
'vec:running-harmonic-mean': {
|
|
27781
27783
|
title: 'vec:running-harmonic-mean',
|
|
27782
27784
|
category: 'Vector',
|
|
27783
|
-
description: 'Returns the **running harmonic mean
|
|
27785
|
+
description: 'Returns the **running harmonic mean** of the `vector`.',
|
|
27784
27786
|
returns: {
|
|
27785
27787
|
type: 'vector',
|
|
27786
27788
|
},
|
|
@@ -27824,7 +27826,7 @@ var medianReference = {
|
|
|
27824
27826
|
'vec:moving-median': {
|
|
27825
27827
|
title: 'vec:moving-median',
|
|
27826
27828
|
category: 'Vector',
|
|
27827
|
-
description: 'Returns the **moving median
|
|
27829
|
+
description: 'Returns the **moving median** of the `vector` with a given window size.',
|
|
27828
27830
|
returns: {
|
|
27829
27831
|
type: 'vector',
|
|
27830
27832
|
},
|
|
@@ -27846,7 +27848,7 @@ var medianReference = {
|
|
|
27846
27848
|
'vec:centered-moving-median': {
|
|
27847
27849
|
title: 'vec:centered-moving-median',
|
|
27848
27850
|
category: 'Vector',
|
|
27849
|
-
description: 'Returns the **centered moving median
|
|
27851
|
+
description: 'Returns the **centered moving median** of the `vector` with a given window size.',
|
|
27850
27852
|
returns: {
|
|
27851
27853
|
type: 'array',
|
|
27852
27854
|
},
|
|
@@ -27877,7 +27879,7 @@ var medianReference = {
|
|
|
27877
27879
|
'vec:running-median': {
|
|
27878
27880
|
title: 'vec:running-median',
|
|
27879
27881
|
category: 'Vector',
|
|
27880
|
-
description: 'Returns the **running median
|
|
27882
|
+
description: 'Returns the **running median** of the `vector`.',
|
|
27881
27883
|
returns: {
|
|
27882
27884
|
type: 'vector',
|
|
27883
27885
|
},
|
|
@@ -27921,7 +27923,7 @@ var varianceReference = {
|
|
|
27921
27923
|
'vec:moving-variance': {
|
|
27922
27924
|
title: 'vec:moving-variance',
|
|
27923
27925
|
category: 'Vector',
|
|
27924
|
-
description: 'Returns the **moving variance
|
|
27926
|
+
description: 'Returns the **moving variance** of the `vector` with a given window size.',
|
|
27925
27927
|
returns: {
|
|
27926
27928
|
type: 'vector',
|
|
27927
27929
|
},
|
|
@@ -27943,7 +27945,7 @@ var varianceReference = {
|
|
|
27943
27945
|
'vec:centered-moving-variance': {
|
|
27944
27946
|
title: 'vec:centered-moving-variance',
|
|
27945
27947
|
category: 'Vector',
|
|
27946
|
-
description: 'Returns the **centered moving variance
|
|
27948
|
+
description: 'Returns the **centered moving variance** of the `vector` with a given window size.',
|
|
27947
27949
|
returns: {
|
|
27948
27950
|
type: 'array',
|
|
27949
27951
|
},
|
|
@@ -27976,7 +27978,7 @@ var varianceReference = {
|
|
|
27976
27978
|
'vec:running-variance': {
|
|
27977
27979
|
title: 'vec:running-variance',
|
|
27978
27980
|
category: 'Vector',
|
|
27979
|
-
description: 'Returns the **running variance
|
|
27981
|
+
description: 'Returns the **running variance** of the `vector`.',
|
|
27980
27982
|
returns: {
|
|
27981
27983
|
type: 'vector',
|
|
27982
27984
|
},
|
|
@@ -28019,7 +28021,7 @@ var sampleVarianceReference = {
|
|
|
28019
28021
|
'vec:moving-sample-variance': {
|
|
28020
28022
|
title: 'vec:moving-sample-variance',
|
|
28021
28023
|
category: 'Vector',
|
|
28022
|
-
description: 'Returns the **moving sample variance
|
|
28024
|
+
description: 'Returns the **moving sample variance** of the `vector` with a given window size.',
|
|
28023
28025
|
returns: {
|
|
28024
28026
|
type: 'vector',
|
|
28025
28027
|
},
|
|
@@ -28041,7 +28043,7 @@ var sampleVarianceReference = {
|
|
|
28041
28043
|
'vec:centered-moving-sample-variance': {
|
|
28042
28044
|
title: 'vec:centered-moving-sample-variance',
|
|
28043
28045
|
category: 'Vector',
|
|
28044
|
-
description: 'Returns the **centered moving sample variance
|
|
28046
|
+
description: 'Returns the **centered moving sample variance** of the `vector` with a given window size.',
|
|
28045
28047
|
returns: {
|
|
28046
28048
|
type: 'array',
|
|
28047
28049
|
},
|
|
@@ -28074,14 +28076,14 @@ var sampleVarianceReference = {
|
|
|
28074
28076
|
'vec:running-sample-variance': {
|
|
28075
28077
|
title: 'vec:running-sample-variance',
|
|
28076
28078
|
category: 'Vector',
|
|
28077
|
-
description: 'Returns the **running sample variance
|
|
28079
|
+
description: 'Returns the **running sample variance** of the `vector`.',
|
|
28078
28080
|
returns: {
|
|
28079
28081
|
type: 'array',
|
|
28080
28082
|
},
|
|
28081
28083
|
args: {
|
|
28082
28084
|
vector: {
|
|
28083
28085
|
type: 'vector',
|
|
28084
|
-
description: 'The `vector` to calculate the **running sample variance
|
|
28086
|
+
description: 'The `vector` to calculate the **running sample variance** of. First element in result is `null` since **sample variance** is not defined for a single element.',
|
|
28085
28087
|
},
|
|
28086
28088
|
},
|
|
28087
28089
|
variants: [
|
|
@@ -28097,7 +28099,7 @@ var standardDeviationReference = {
|
|
|
28097
28099
|
'vec:stdev': {
|
|
28098
28100
|
title: 'vec:stdev',
|
|
28099
28101
|
category: 'Vector',
|
|
28100
|
-
description: 'Returns the **standard deviation
|
|
28102
|
+
description: 'Returns the **standard deviation** of the `vector`.',
|
|
28101
28103
|
returns: {
|
|
28102
28104
|
type: 'number',
|
|
28103
28105
|
},
|
|
@@ -28118,7 +28120,7 @@ var standardDeviationReference = {
|
|
|
28118
28120
|
'vec:moving-stdev': {
|
|
28119
28121
|
title: 'vec:moving-stdev',
|
|
28120
28122
|
category: 'Vector',
|
|
28121
|
-
description: 'Returns the **moving standard deviation
|
|
28123
|
+
description: 'Returns the **moving standard deviation** of the `vector` with a given window size.',
|
|
28122
28124
|
returns: {
|
|
28123
28125
|
type: 'vector',
|
|
28124
28126
|
},
|
|
@@ -28140,7 +28142,7 @@ var standardDeviationReference = {
|
|
|
28140
28142
|
'vec:centered-moving-stdev': {
|
|
28141
28143
|
title: 'vec:centered-moving-stdev',
|
|
28142
28144
|
category: 'Vector',
|
|
28143
|
-
description: 'Returns the **centered moving standard deviation
|
|
28145
|
+
description: 'Returns the **centered moving standard deviation** of the `vector` with a given window size.',
|
|
28144
28146
|
returns: {
|
|
28145
28147
|
type: 'array',
|
|
28146
28148
|
},
|
|
@@ -28173,7 +28175,7 @@ var standardDeviationReference = {
|
|
|
28173
28175
|
'vec:running-stdev': {
|
|
28174
28176
|
title: 'vec:running-stdev',
|
|
28175
28177
|
category: 'Vector',
|
|
28176
|
-
description: 'Returns the **running standard deviation
|
|
28178
|
+
description: 'Returns the **running standard deviation** of the `vector`.',
|
|
28177
28179
|
returns: {
|
|
28178
28180
|
type: 'vector',
|
|
28179
28181
|
},
|
|
@@ -28195,7 +28197,7 @@ var sampleStandardDeviationReference = {
|
|
|
28195
28197
|
'vec:sample-stdev': {
|
|
28196
28198
|
title: 'vec:sample-stdev',
|
|
28197
28199
|
category: 'Vector',
|
|
28198
|
-
description: 'Returns the **sample standard deviation
|
|
28200
|
+
description: 'Returns the **sample standard deviation** of the `vector`.',
|
|
28199
28201
|
returns: {
|
|
28200
28202
|
type: 'number',
|
|
28201
28203
|
},
|
|
@@ -28216,7 +28218,7 @@ var sampleStandardDeviationReference = {
|
|
|
28216
28218
|
'vec:moving-sample-stdev': {
|
|
28217
28219
|
title: 'vec:moving-sample-stdev',
|
|
28218
28220
|
category: 'Vector',
|
|
28219
|
-
description: 'Returns the **moving sample standard deviation
|
|
28221
|
+
description: 'Returns the **moving sample standard deviation** of the `vector` with a given window size.',
|
|
28220
28222
|
returns: {
|
|
28221
28223
|
type: 'vector',
|
|
28222
28224
|
},
|
|
@@ -28238,7 +28240,7 @@ var sampleStandardDeviationReference = {
|
|
|
28238
28240
|
'vec:centered-moving-sample-stdev': {
|
|
28239
28241
|
title: 'vec:centered-moving-sample-stdev',
|
|
28240
28242
|
category: 'Vector',
|
|
28241
|
-
description: 'Returns the **centered moving sample standard deviation
|
|
28243
|
+
description: 'Returns the **centered moving sample standard deviation** of the `vector` with a given window size.',
|
|
28242
28244
|
returns: {
|
|
28243
28245
|
type: 'array',
|
|
28244
28246
|
},
|
|
@@ -28271,14 +28273,14 @@ var sampleStandardDeviationReference = {
|
|
|
28271
28273
|
'vec:running-sample-stdev': {
|
|
28272
28274
|
title: 'vec:running-sample-stdev',
|
|
28273
28275
|
category: 'Vector',
|
|
28274
|
-
description: 'Returns the **running sample standard deviation
|
|
28276
|
+
description: 'Returns the **running sample standard deviation** of the `vector`.',
|
|
28275
28277
|
returns: {
|
|
28276
28278
|
type: 'array',
|
|
28277
28279
|
},
|
|
28278
28280
|
args: {
|
|
28279
28281
|
vector: {
|
|
28280
28282
|
type: 'vector',
|
|
28281
|
-
description: 'The `vector` to calculate the **running sample standard deviation
|
|
28283
|
+
description: 'The `vector` to calculate the **running sample standard deviation** of. First element in result is `null` since **sample standard deviation** is not defined for a single element.',
|
|
28282
28284
|
},
|
|
28283
28285
|
},
|
|
28284
28286
|
variants: [
|
|
@@ -28607,7 +28609,7 @@ var sumReference = {
|
|
|
28607
28609
|
'vec:moving-sum': {
|
|
28608
28610
|
title: 'vec:moving-sum',
|
|
28609
28611
|
category: 'Vector',
|
|
28610
|
-
description: 'Returns the **moving sum
|
|
28612
|
+
description: 'Returns the **moving sum** of the `vector` with a given window size.',
|
|
28611
28613
|
returns: {
|
|
28612
28614
|
type: 'vector',
|
|
28613
28615
|
},
|
|
@@ -28629,7 +28631,7 @@ var sumReference = {
|
|
|
28629
28631
|
'vec:centered-moving-sum': {
|
|
28630
28632
|
title: 'vec:centered-moving-sum',
|
|
28631
28633
|
category: 'Vector',
|
|
28632
|
-
description: 'Returns the **centered moving sum
|
|
28634
|
+
description: 'Returns the **centered moving sum** of the `vector` with a given window size.',
|
|
28633
28635
|
returns: {
|
|
28634
28636
|
type: 'array',
|
|
28635
28637
|
},
|
|
@@ -28660,7 +28662,7 @@ var sumReference = {
|
|
|
28660
28662
|
'vec:running-sum': {
|
|
28661
28663
|
title: 'vec:running-sum',
|
|
28662
28664
|
category: 'Vector',
|
|
28663
|
-
description: 'Returns the **running sum
|
|
28665
|
+
description: 'Returns the **running sum** of the `vector`.',
|
|
28664
28666
|
returns: {
|
|
28665
28667
|
type: 'vector',
|
|
28666
28668
|
},
|
|
@@ -28705,7 +28707,7 @@ var prodReference = {
|
|
|
28705
28707
|
'vec:moving-prod': {
|
|
28706
28708
|
title: 'vec:moving-prod',
|
|
28707
28709
|
category: 'Vector',
|
|
28708
|
-
description: 'Returns the **moving product
|
|
28710
|
+
description: 'Returns the **moving product** of the `vector` with a given window size.',
|
|
28709
28711
|
returns: {
|
|
28710
28712
|
type: 'vector',
|
|
28711
28713
|
},
|
|
@@ -28727,7 +28729,7 @@ var prodReference = {
|
|
|
28727
28729
|
'vec:centered-moving-prod': {
|
|
28728
28730
|
title: 'vec:centered-moving-prod',
|
|
28729
28731
|
category: 'Vector',
|
|
28730
|
-
description: 'Returns the **centered moving product
|
|
28732
|
+
description: 'Returns the **centered moving product** of the `vector` with a given window size.',
|
|
28731
28733
|
returns: {
|
|
28732
28734
|
type: 'array',
|
|
28733
28735
|
},
|
|
@@ -28757,7 +28759,7 @@ var prodReference = {
|
|
|
28757
28759
|
'vec:running-prod': {
|
|
28758
28760
|
title: 'vec:running-prod',
|
|
28759
28761
|
category: 'Vector',
|
|
28760
|
-
description: 'Returns the **running product
|
|
28762
|
+
description: 'Returns the **running product** of the `vector`.',
|
|
28761
28763
|
returns: {
|
|
28762
28764
|
type: 'vector',
|
|
28763
28765
|
},
|
|
@@ -28802,7 +28804,7 @@ var minReference = {
|
|
|
28802
28804
|
'vec:moving-min': {
|
|
28803
28805
|
title: 'vec:moving-min',
|
|
28804
28806
|
category: 'Vector',
|
|
28805
|
-
description: 'Returns the **moving minimum
|
|
28807
|
+
description: 'Returns the **moving minimum** of the `vector` with a given window size.',
|
|
28806
28808
|
returns: {
|
|
28807
28809
|
type: 'vector',
|
|
28808
28810
|
},
|
|
@@ -28824,7 +28826,7 @@ var minReference = {
|
|
|
28824
28826
|
'vec:centered-moving-min': {
|
|
28825
28827
|
title: 'vec:centered-moving-min',
|
|
28826
28828
|
category: 'Vector',
|
|
28827
|
-
description: 'Returns the **centered moving minimum
|
|
28829
|
+
description: 'Returns the **centered moving minimum** of the `vector` with a given window size.',
|
|
28828
28830
|
returns: {
|
|
28829
28831
|
type: 'array',
|
|
28830
28832
|
},
|
|
@@ -28855,7 +28857,7 @@ var minReference = {
|
|
|
28855
28857
|
'vec:running-min': {
|
|
28856
28858
|
title: 'vec:running-min',
|
|
28857
28859
|
category: 'Vector',
|
|
28858
|
-
description: 'Returns the **running minimum
|
|
28860
|
+
description: 'Returns the **running minimum** of the `vector`.',
|
|
28859
28861
|
returns: {
|
|
28860
28862
|
type: 'vector',
|
|
28861
28863
|
},
|
|
@@ -28900,7 +28902,7 @@ var maxReference = {
|
|
|
28900
28902
|
'vec:moving-max': {
|
|
28901
28903
|
title: 'vec:moving-max',
|
|
28902
28904
|
category: 'Vector',
|
|
28903
|
-
description: 'Returns the **moving maximum
|
|
28905
|
+
description: 'Returns the **moving maximum** of the `vector` with a given window size.',
|
|
28904
28906
|
returns: {
|
|
28905
28907
|
type: 'vector',
|
|
28906
28908
|
},
|
|
@@ -28922,7 +28924,7 @@ var maxReference = {
|
|
|
28922
28924
|
'vec:centered-moving-max': {
|
|
28923
28925
|
title: 'vec:centered-moving-max',
|
|
28924
28926
|
category: 'Vector',
|
|
28925
|
-
description: 'Returns the **centered moving maximum
|
|
28927
|
+
description: 'Returns the **centered moving maximum** of the `vector` with a given window size.',
|
|
28926
28928
|
returns: {
|
|
28927
28929
|
type: 'array',
|
|
28928
28930
|
},
|
|
@@ -28953,7 +28955,7 @@ var maxReference = {
|
|
|
28953
28955
|
'vec:running-max': {
|
|
28954
28956
|
title: 'vec:running-max',
|
|
28955
28957
|
category: 'Vector',
|
|
28956
|
-
description: 'Returns the **running maximum
|
|
28958
|
+
description: 'Returns the **running maximum** of the `vector`.',
|
|
28957
28959
|
returns: {
|
|
28958
28960
|
type: 'vector',
|
|
28959
28961
|
},
|