@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
|
@@ -11348,8 +11348,10 @@ function randn() {
|
|
|
11348
11348
|
|
|
11349
11349
|
function generateDocString(reference) {
|
|
11350
11350
|
return smartTrim("\n ".concat(reference.title).concat(getAliases(reference), "\n\n ").concat(reference.description
|
|
11351
|
-
.replace(/`(
|
|
11352
|
-
.replace(/\$(\w+)/g, '$1')
|
|
11351
|
+
.replace(/`(.+?)`/g, '$1')
|
|
11352
|
+
.replace(/\$(\w+)/g, '$1')
|
|
11353
|
+
.replace(/\*\*\*(.+)\*\*\*/g, '$1')
|
|
11354
|
+
.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')));
|
|
11353
11355
|
}
|
|
11354
11356
|
function signature(_a) {
|
|
11355
11357
|
var title = _a.title, variants = _a.variants, args = _a.args, returns = _a.returns, _isOperator = _a._isOperator;
|
|
@@ -27476,7 +27478,7 @@ var meanReference = {
|
|
|
27476
27478
|
'vec:moving-mean': {
|
|
27477
27479
|
title: 'vec:moving-mean',
|
|
27478
27480
|
category: 'Vector',
|
|
27479
|
-
description: 'Returns the **moving mean
|
|
27481
|
+
description: 'Returns the **moving mean** of the `vector` with a given window size.',
|
|
27480
27482
|
returns: {
|
|
27481
27483
|
type: 'vector',
|
|
27482
27484
|
},
|
|
@@ -27498,7 +27500,7 @@ var meanReference = {
|
|
|
27498
27500
|
'vec:centered-moving-mean': {
|
|
27499
27501
|
title: 'vec:centered-moving-mean',
|
|
27500
27502
|
category: 'Vector',
|
|
27501
|
-
description: 'Returns the **centered moving mean
|
|
27503
|
+
description: 'Returns the **centered moving mean** of the `vector` with a given window size.',
|
|
27502
27504
|
returns: {
|
|
27503
27505
|
type: 'array',
|
|
27504
27506
|
},
|
|
@@ -27529,7 +27531,7 @@ var meanReference = {
|
|
|
27529
27531
|
'vec:running-mean': {
|
|
27530
27532
|
title: 'vec:running-mean',
|
|
27531
27533
|
category: 'Vector',
|
|
27532
|
-
description: 'Returns the **running mean
|
|
27534
|
+
description: 'Returns the **running mean** of the `vector`.',
|
|
27533
27535
|
returns: {
|
|
27534
27536
|
type: 'vector',
|
|
27535
27537
|
},
|
|
@@ -27572,7 +27574,7 @@ var geometricMeanReference = {
|
|
|
27572
27574
|
'vec:moving-geometric-mean': {
|
|
27573
27575
|
title: 'vec:moving-geometric-mean',
|
|
27574
27576
|
category: 'Vector',
|
|
27575
|
-
description: 'Returns the **moving geometric mean
|
|
27577
|
+
description: 'Returns the **moving geometric mean** of the `vector` with a given window size.',
|
|
27576
27578
|
returns: {
|
|
27577
27579
|
type: 'vector',
|
|
27578
27580
|
},
|
|
@@ -27594,7 +27596,7 @@ var geometricMeanReference = {
|
|
|
27594
27596
|
'vec:centered-moving-geometric-mean': {
|
|
27595
27597
|
title: 'vec:centered-moving-geometric-mean',
|
|
27596
27598
|
category: 'Vector',
|
|
27597
|
-
description: 'Returns the **centered moving geometric mean
|
|
27599
|
+
description: 'Returns the **centered moving geometric mean** of the `vector` with a given window size.',
|
|
27598
27600
|
returns: {
|
|
27599
27601
|
type: 'array',
|
|
27600
27602
|
},
|
|
@@ -27625,7 +27627,7 @@ var geometricMeanReference = {
|
|
|
27625
27627
|
'vec:running-geometric-mean': {
|
|
27626
27628
|
title: 'vec:running-geometric-mean',
|
|
27627
27629
|
category: 'Vector',
|
|
27628
|
-
description: 'Returns the **running geometric mean
|
|
27630
|
+
description: 'Returns the **running geometric mean** of the `vector`.',
|
|
27629
27631
|
returns: {
|
|
27630
27632
|
type: 'vector',
|
|
27631
27633
|
},
|
|
@@ -27668,7 +27670,7 @@ var harmonicMeanReference = {
|
|
|
27668
27670
|
'vec:moving-harmonic-mean': {
|
|
27669
27671
|
title: 'vec:moving-harmonic-mean',
|
|
27670
27672
|
category: 'Vector',
|
|
27671
|
-
description: 'Returns the **moving harmonic mean
|
|
27673
|
+
description: 'Returns the **moving harmonic mean** of the `vector` with a given window size.',
|
|
27672
27674
|
returns: {
|
|
27673
27675
|
type: 'vector',
|
|
27674
27676
|
},
|
|
@@ -27690,7 +27692,7 @@ var harmonicMeanReference = {
|
|
|
27690
27692
|
'vec:centered-moving-harmonic-mean': {
|
|
27691
27693
|
title: 'vec:centered-moving-harmonic-mean',
|
|
27692
27694
|
category: 'Vector',
|
|
27693
|
-
description: 'Returns the **centered moving harmonic mean
|
|
27695
|
+
description: 'Returns the **centered moving harmonic mean** of the `vector` with a given window size.',
|
|
27694
27696
|
returns: {
|
|
27695
27697
|
type: 'array',
|
|
27696
27698
|
},
|
|
@@ -27721,7 +27723,7 @@ var harmonicMeanReference = {
|
|
|
27721
27723
|
'vec:running-harmonic-mean': {
|
|
27722
27724
|
title: 'vec:running-harmonic-mean',
|
|
27723
27725
|
category: 'Vector',
|
|
27724
|
-
description: 'Returns the **running harmonic mean
|
|
27726
|
+
description: 'Returns the **running harmonic mean** of the `vector`.',
|
|
27725
27727
|
returns: {
|
|
27726
27728
|
type: 'vector',
|
|
27727
27729
|
},
|
|
@@ -27765,7 +27767,7 @@ var medianReference = {
|
|
|
27765
27767
|
'vec:moving-median': {
|
|
27766
27768
|
title: 'vec:moving-median',
|
|
27767
27769
|
category: 'Vector',
|
|
27768
|
-
description: 'Returns the **moving median
|
|
27770
|
+
description: 'Returns the **moving median** of the `vector` with a given window size.',
|
|
27769
27771
|
returns: {
|
|
27770
27772
|
type: 'vector',
|
|
27771
27773
|
},
|
|
@@ -27787,7 +27789,7 @@ var medianReference = {
|
|
|
27787
27789
|
'vec:centered-moving-median': {
|
|
27788
27790
|
title: 'vec:centered-moving-median',
|
|
27789
27791
|
category: 'Vector',
|
|
27790
|
-
description: 'Returns the **centered moving median
|
|
27792
|
+
description: 'Returns the **centered moving median** of the `vector` with a given window size.',
|
|
27791
27793
|
returns: {
|
|
27792
27794
|
type: 'array',
|
|
27793
27795
|
},
|
|
@@ -27818,7 +27820,7 @@ var medianReference = {
|
|
|
27818
27820
|
'vec:running-median': {
|
|
27819
27821
|
title: 'vec:running-median',
|
|
27820
27822
|
category: 'Vector',
|
|
27821
|
-
description: 'Returns the **running median
|
|
27823
|
+
description: 'Returns the **running median** of the `vector`.',
|
|
27822
27824
|
returns: {
|
|
27823
27825
|
type: 'vector',
|
|
27824
27826
|
},
|
|
@@ -27862,7 +27864,7 @@ var varianceReference = {
|
|
|
27862
27864
|
'vec:moving-variance': {
|
|
27863
27865
|
title: 'vec:moving-variance',
|
|
27864
27866
|
category: 'Vector',
|
|
27865
|
-
description: 'Returns the **moving variance
|
|
27867
|
+
description: 'Returns the **moving variance** of the `vector` with a given window size.',
|
|
27866
27868
|
returns: {
|
|
27867
27869
|
type: 'vector',
|
|
27868
27870
|
},
|
|
@@ -27884,7 +27886,7 @@ var varianceReference = {
|
|
|
27884
27886
|
'vec:centered-moving-variance': {
|
|
27885
27887
|
title: 'vec:centered-moving-variance',
|
|
27886
27888
|
category: 'Vector',
|
|
27887
|
-
description: 'Returns the **centered moving variance
|
|
27889
|
+
description: 'Returns the **centered moving variance** of the `vector` with a given window size.',
|
|
27888
27890
|
returns: {
|
|
27889
27891
|
type: 'array',
|
|
27890
27892
|
},
|
|
@@ -27917,7 +27919,7 @@ var varianceReference = {
|
|
|
27917
27919
|
'vec:running-variance': {
|
|
27918
27920
|
title: 'vec:running-variance',
|
|
27919
27921
|
category: 'Vector',
|
|
27920
|
-
description: 'Returns the **running variance
|
|
27922
|
+
description: 'Returns the **running variance** of the `vector`.',
|
|
27921
27923
|
returns: {
|
|
27922
27924
|
type: 'vector',
|
|
27923
27925
|
},
|
|
@@ -27960,7 +27962,7 @@ var sampleVarianceReference = {
|
|
|
27960
27962
|
'vec:moving-sample-variance': {
|
|
27961
27963
|
title: 'vec:moving-sample-variance',
|
|
27962
27964
|
category: 'Vector',
|
|
27963
|
-
description: 'Returns the **moving sample variance
|
|
27965
|
+
description: 'Returns the **moving sample variance** of the `vector` with a given window size.',
|
|
27964
27966
|
returns: {
|
|
27965
27967
|
type: 'vector',
|
|
27966
27968
|
},
|
|
@@ -27982,7 +27984,7 @@ var sampleVarianceReference = {
|
|
|
27982
27984
|
'vec:centered-moving-sample-variance': {
|
|
27983
27985
|
title: 'vec:centered-moving-sample-variance',
|
|
27984
27986
|
category: 'Vector',
|
|
27985
|
-
description: 'Returns the **centered moving sample variance
|
|
27987
|
+
description: 'Returns the **centered moving sample variance** of the `vector` with a given window size.',
|
|
27986
27988
|
returns: {
|
|
27987
27989
|
type: 'array',
|
|
27988
27990
|
},
|
|
@@ -28015,14 +28017,14 @@ var sampleVarianceReference = {
|
|
|
28015
28017
|
'vec:running-sample-variance': {
|
|
28016
28018
|
title: 'vec:running-sample-variance',
|
|
28017
28019
|
category: 'Vector',
|
|
28018
|
-
description: 'Returns the **running sample variance
|
|
28020
|
+
description: 'Returns the **running sample variance** of the `vector`.',
|
|
28019
28021
|
returns: {
|
|
28020
28022
|
type: 'array',
|
|
28021
28023
|
},
|
|
28022
28024
|
args: {
|
|
28023
28025
|
vector: {
|
|
28024
28026
|
type: 'vector',
|
|
28025
|
-
description: 'The `vector` to calculate the **running sample variance
|
|
28027
|
+
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.',
|
|
28026
28028
|
},
|
|
28027
28029
|
},
|
|
28028
28030
|
variants: [
|
|
@@ -28038,7 +28040,7 @@ var standardDeviationReference = {
|
|
|
28038
28040
|
'vec:stdev': {
|
|
28039
28041
|
title: 'vec:stdev',
|
|
28040
28042
|
category: 'Vector',
|
|
28041
|
-
description: 'Returns the **standard deviation
|
|
28043
|
+
description: 'Returns the **standard deviation** of the `vector`.',
|
|
28042
28044
|
returns: {
|
|
28043
28045
|
type: 'number',
|
|
28044
28046
|
},
|
|
@@ -28059,7 +28061,7 @@ var standardDeviationReference = {
|
|
|
28059
28061
|
'vec:moving-stdev': {
|
|
28060
28062
|
title: 'vec:moving-stdev',
|
|
28061
28063
|
category: 'Vector',
|
|
28062
|
-
description: 'Returns the **moving standard deviation
|
|
28064
|
+
description: 'Returns the **moving standard deviation** of the `vector` with a given window size.',
|
|
28063
28065
|
returns: {
|
|
28064
28066
|
type: 'vector',
|
|
28065
28067
|
},
|
|
@@ -28081,7 +28083,7 @@ var standardDeviationReference = {
|
|
|
28081
28083
|
'vec:centered-moving-stdev': {
|
|
28082
28084
|
title: 'vec:centered-moving-stdev',
|
|
28083
28085
|
category: 'Vector',
|
|
28084
|
-
description: 'Returns the **centered moving standard deviation
|
|
28086
|
+
description: 'Returns the **centered moving standard deviation** of the `vector` with a given window size.',
|
|
28085
28087
|
returns: {
|
|
28086
28088
|
type: 'array',
|
|
28087
28089
|
},
|
|
@@ -28114,7 +28116,7 @@ var standardDeviationReference = {
|
|
|
28114
28116
|
'vec:running-stdev': {
|
|
28115
28117
|
title: 'vec:running-stdev',
|
|
28116
28118
|
category: 'Vector',
|
|
28117
|
-
description: 'Returns the **running standard deviation
|
|
28119
|
+
description: 'Returns the **running standard deviation** of the `vector`.',
|
|
28118
28120
|
returns: {
|
|
28119
28121
|
type: 'vector',
|
|
28120
28122
|
},
|
|
@@ -28136,7 +28138,7 @@ var sampleStandardDeviationReference = {
|
|
|
28136
28138
|
'vec:sample-stdev': {
|
|
28137
28139
|
title: 'vec:sample-stdev',
|
|
28138
28140
|
category: 'Vector',
|
|
28139
|
-
description: 'Returns the **sample standard deviation
|
|
28141
|
+
description: 'Returns the **sample standard deviation** of the `vector`.',
|
|
28140
28142
|
returns: {
|
|
28141
28143
|
type: 'number',
|
|
28142
28144
|
},
|
|
@@ -28157,7 +28159,7 @@ var sampleStandardDeviationReference = {
|
|
|
28157
28159
|
'vec:moving-sample-stdev': {
|
|
28158
28160
|
title: 'vec:moving-sample-stdev',
|
|
28159
28161
|
category: 'Vector',
|
|
28160
|
-
description: 'Returns the **moving sample standard deviation
|
|
28162
|
+
description: 'Returns the **moving sample standard deviation** of the `vector` with a given window size.',
|
|
28161
28163
|
returns: {
|
|
28162
28164
|
type: 'vector',
|
|
28163
28165
|
},
|
|
@@ -28179,7 +28181,7 @@ var sampleStandardDeviationReference = {
|
|
|
28179
28181
|
'vec:centered-moving-sample-stdev': {
|
|
28180
28182
|
title: 'vec:centered-moving-sample-stdev',
|
|
28181
28183
|
category: 'Vector',
|
|
28182
|
-
description: 'Returns the **centered moving sample standard deviation
|
|
28184
|
+
description: 'Returns the **centered moving sample standard deviation** of the `vector` with a given window size.',
|
|
28183
28185
|
returns: {
|
|
28184
28186
|
type: 'array',
|
|
28185
28187
|
},
|
|
@@ -28212,14 +28214,14 @@ var sampleStandardDeviationReference = {
|
|
|
28212
28214
|
'vec:running-sample-stdev': {
|
|
28213
28215
|
title: 'vec:running-sample-stdev',
|
|
28214
28216
|
category: 'Vector',
|
|
28215
|
-
description: 'Returns the **running sample standard deviation
|
|
28217
|
+
description: 'Returns the **running sample standard deviation** of the `vector`.',
|
|
28216
28218
|
returns: {
|
|
28217
28219
|
type: 'array',
|
|
28218
28220
|
},
|
|
28219
28221
|
args: {
|
|
28220
28222
|
vector: {
|
|
28221
28223
|
type: 'vector',
|
|
28222
|
-
description: 'The `vector` to calculate the **running sample standard deviation
|
|
28224
|
+
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.',
|
|
28223
28225
|
},
|
|
28224
28226
|
},
|
|
28225
28227
|
variants: [
|
|
@@ -28548,7 +28550,7 @@ var sumReference = {
|
|
|
28548
28550
|
'vec:moving-sum': {
|
|
28549
28551
|
title: 'vec:moving-sum',
|
|
28550
28552
|
category: 'Vector',
|
|
28551
|
-
description: 'Returns the **moving sum
|
|
28553
|
+
description: 'Returns the **moving sum** of the `vector` with a given window size.',
|
|
28552
28554
|
returns: {
|
|
28553
28555
|
type: 'vector',
|
|
28554
28556
|
},
|
|
@@ -28570,7 +28572,7 @@ var sumReference = {
|
|
|
28570
28572
|
'vec:centered-moving-sum': {
|
|
28571
28573
|
title: 'vec:centered-moving-sum',
|
|
28572
28574
|
category: 'Vector',
|
|
28573
|
-
description: 'Returns the **centered moving sum
|
|
28575
|
+
description: 'Returns the **centered moving sum** of the `vector` with a given window size.',
|
|
28574
28576
|
returns: {
|
|
28575
28577
|
type: 'array',
|
|
28576
28578
|
},
|
|
@@ -28601,7 +28603,7 @@ var sumReference = {
|
|
|
28601
28603
|
'vec:running-sum': {
|
|
28602
28604
|
title: 'vec:running-sum',
|
|
28603
28605
|
category: 'Vector',
|
|
28604
|
-
description: 'Returns the **running sum
|
|
28606
|
+
description: 'Returns the **running sum** of the `vector`.',
|
|
28605
28607
|
returns: {
|
|
28606
28608
|
type: 'vector',
|
|
28607
28609
|
},
|
|
@@ -28646,7 +28648,7 @@ var prodReference = {
|
|
|
28646
28648
|
'vec:moving-prod': {
|
|
28647
28649
|
title: 'vec:moving-prod',
|
|
28648
28650
|
category: 'Vector',
|
|
28649
|
-
description: 'Returns the **moving product
|
|
28651
|
+
description: 'Returns the **moving product** of the `vector` with a given window size.',
|
|
28650
28652
|
returns: {
|
|
28651
28653
|
type: 'vector',
|
|
28652
28654
|
},
|
|
@@ -28668,7 +28670,7 @@ var prodReference = {
|
|
|
28668
28670
|
'vec:centered-moving-prod': {
|
|
28669
28671
|
title: 'vec:centered-moving-prod',
|
|
28670
28672
|
category: 'Vector',
|
|
28671
|
-
description: 'Returns the **centered moving product
|
|
28673
|
+
description: 'Returns the **centered moving product** of the `vector` with a given window size.',
|
|
28672
28674
|
returns: {
|
|
28673
28675
|
type: 'array',
|
|
28674
28676
|
},
|
|
@@ -28698,7 +28700,7 @@ var prodReference = {
|
|
|
28698
28700
|
'vec:running-prod': {
|
|
28699
28701
|
title: 'vec:running-prod',
|
|
28700
28702
|
category: 'Vector',
|
|
28701
|
-
description: 'Returns the **running product
|
|
28703
|
+
description: 'Returns the **running product** of the `vector`.',
|
|
28702
28704
|
returns: {
|
|
28703
28705
|
type: 'vector',
|
|
28704
28706
|
},
|
|
@@ -28743,7 +28745,7 @@ var minReference = {
|
|
|
28743
28745
|
'vec:moving-min': {
|
|
28744
28746
|
title: 'vec:moving-min',
|
|
28745
28747
|
category: 'Vector',
|
|
28746
|
-
description: 'Returns the **moving minimum
|
|
28748
|
+
description: 'Returns the **moving minimum** of the `vector` with a given window size.',
|
|
28747
28749
|
returns: {
|
|
28748
28750
|
type: 'vector',
|
|
28749
28751
|
},
|
|
@@ -28765,7 +28767,7 @@ var minReference = {
|
|
|
28765
28767
|
'vec:centered-moving-min': {
|
|
28766
28768
|
title: 'vec:centered-moving-min',
|
|
28767
28769
|
category: 'Vector',
|
|
28768
|
-
description: 'Returns the **centered moving minimum
|
|
28770
|
+
description: 'Returns the **centered moving minimum** of the `vector` with a given window size.',
|
|
28769
28771
|
returns: {
|
|
28770
28772
|
type: 'array',
|
|
28771
28773
|
},
|
|
@@ -28796,7 +28798,7 @@ var minReference = {
|
|
|
28796
28798
|
'vec:running-min': {
|
|
28797
28799
|
title: 'vec:running-min',
|
|
28798
28800
|
category: 'Vector',
|
|
28799
|
-
description: 'Returns the **running minimum
|
|
28801
|
+
description: 'Returns the **running minimum** of the `vector`.',
|
|
28800
28802
|
returns: {
|
|
28801
28803
|
type: 'vector',
|
|
28802
28804
|
},
|
|
@@ -28841,7 +28843,7 @@ var maxReference = {
|
|
|
28841
28843
|
'vec:moving-max': {
|
|
28842
28844
|
title: 'vec:moving-max',
|
|
28843
28845
|
category: 'Vector',
|
|
28844
|
-
description: 'Returns the **moving maximum
|
|
28846
|
+
description: 'Returns the **moving maximum** of the `vector` with a given window size.',
|
|
28845
28847
|
returns: {
|
|
28846
28848
|
type: 'vector',
|
|
28847
28849
|
},
|
|
@@ -28863,7 +28865,7 @@ var maxReference = {
|
|
|
28863
28865
|
'vec:centered-moving-max': {
|
|
28864
28866
|
title: 'vec:centered-moving-max',
|
|
28865
28867
|
category: 'Vector',
|
|
28866
|
-
description: 'Returns the **centered moving maximum
|
|
28868
|
+
description: 'Returns the **centered moving maximum** of the `vector` with a given window size.',
|
|
28867
28869
|
returns: {
|
|
28868
28870
|
type: 'array',
|
|
28869
28871
|
},
|
|
@@ -28894,7 +28896,7 @@ var maxReference = {
|
|
|
28894
28896
|
'vec:running-max': {
|
|
28895
28897
|
title: 'vec:running-max',
|
|
28896
28898
|
category: 'Vector',
|
|
28897
|
-
description: 'Returns the **running maximum
|
|
28899
|
+
description: 'Returns the **running maximum** of the `vector`.',
|
|
28898
28900
|
returns: {
|
|
28899
28901
|
type: 'vector',
|
|
28900
28902
|
},
|