namirasoft-bill-watch 1.4.7 → 1.4.9
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/.ns-sdkg-dir-deep +6 -6
- package/.ns-sdkg-file-keep +21 -20
- package/dist/formula/BaseFormula.d.ts +0 -2
- package/dist/formula/BaseFormula.js +0 -194
- package/dist/formula/BaseFormula.js.map +1 -1
- package/dist/formula/FormulaDefinitionRow.d.ts +2 -0
- package/dist/formula/Formulas.d.ts +4 -0
- package/dist/formula/Formulas.js +233 -0
- package/dist/formula/Formulas.js.map +1 -0
- package/dist/formula/statistical/amount/Formula_AmountByAverage.d.ts +1 -1
- package/dist/formula/statistical/amount/Formula_AmountByAverage.js +1 -1
- package/dist/formula/statistical/amount/Formula_AmountByAverage.js.map +1 -1
- package/dist/formula/statistical/amount/Formula_AmountByLast.d.ts +1 -1
- package/dist/formula/statistical/amount/Formula_AmountByLast.js +1 -1
- package/dist/formula/statistical/amount/Formula_AmountByLast.js.map +1 -1
- package/dist/formula/statistical/amount/Formula_AmountByMax.d.ts +1 -1
- package/dist/formula/statistical/amount/Formula_AmountByMax.js +1 -1
- package/dist/formula/statistical/amount/Formula_AmountByMax.js.map +1 -1
- package/dist/formula/statistical/amount/Formula_AmountByMedian.d.ts +1 -1
- package/dist/formula/statistical/amount/Formula_AmountByMedian.js +1 -1
- package/dist/formula/statistical/amount/Formula_AmountByMedian.js.map +1 -1
- package/dist/formula/statistical/amount/Formula_AmountByMin.d.ts +1 -1
- package/dist/formula/statistical/amount/Formula_AmountByMin.js +1 -1
- package/dist/formula/statistical/amount/Formula_AmountByMin.js.map +1 -1
- package/dist/formula/statistical/percent/Formula_PercentageByAverage.d.ts +1 -1
- package/dist/formula/statistical/percent/Formula_PercentageByAverage.js +1 -1
- package/dist/formula/statistical/percent/Formula_PercentageByAverage.js.map +1 -1
- package/dist/formula/statistical/percent/Formula_PercentageByLast.d.ts +1 -1
- package/dist/formula/statistical/percent/Formula_PercentageByLast.js +1 -1
- package/dist/formula/statistical/percent/Formula_PercentageByLast.js.map +1 -1
- package/dist/formula/statistical/percent/Formula_PercentageByMax.d.ts +1 -1
- package/dist/formula/statistical/percent/Formula_PercentageByMax.js +1 -1
- package/dist/formula/statistical/percent/Formula_PercentageByMax.js.map +1 -1
- package/dist/formula/statistical/percent/Formula_PercentageByMedian.d.ts +1 -1
- package/dist/formula/statistical/percent/Formula_PercentageByMedian.js +1 -1
- package/dist/formula/statistical/percent/Formula_PercentageByMedian.js.map +1 -1
- package/dist/formula/statistical/percent/Formula_PercentageByMin.d.ts +1 -1
- package/dist/formula/statistical/percent/Formula_PercentageByMin.js +1 -1
- package/dist/formula/statistical/percent/Formula_PercentageByMin.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +27 -27
- package/src/NamirasoftBillWatchServer.ts +83 -83
- package/src/NamirasoftBillWatchServerAWS.ts +70 -70
- package/src/NamirasoftBillWatchServerAWSCategory.ts +62 -62
- package/src/NamirasoftBillWatchServerAWSField.ts +69 -69
- package/src/NamirasoftBillWatchServerAWSTag.ts +69 -69
- package/src/NamirasoftBillWatchServerAzure.ts +70 -70
- package/src/NamirasoftBillWatchServerAzureCategory.ts +62 -62
- package/src/NamirasoftBillWatchServerAzureField.ts +69 -69
- package/src/NamirasoftBillWatchServerAzureTag.ts +69 -69
- package/src/NamirasoftBillWatchServerBase.ts +29 -29
- package/src/NamirasoftBillWatchServerGCP.ts +70 -70
- package/src/NamirasoftBillWatchServerGCPCategory.ts +62 -62
- package/src/NamirasoftBillWatchServerGCPField.ts +69 -69
- package/src/NamirasoftBillWatchServerGCPTag.ts +69 -69
- package/src/NamirasoftBillWatchServerHealthz.ts +35 -35
- package/src/NamirasoftBillWatchServerRule.ts +70 -70
- package/src/NamirasoftBillWatchServerRuleCategory.ts +62 -62
- package/src/NamirasoftBillWatchServerRuleField.ts +69 -69
- package/src/NamirasoftBillWatchServerRuleTag.ts +69 -69
- package/src/NamirasoftBillWatchServerValue.ts +36 -36
- package/src/command/AWSCategoryCommand.ts +37 -37
- package/src/command/AWSCategoryCreateCommand.ts +55 -55
- package/src/command/AWSCategoryDeleteCommand.ts +44 -44
- package/src/command/AWSCategoryGetCommand.ts +44 -44
- package/src/command/AWSCategoryListCommand.ts +44 -44
- package/src/command/AWSCommand.ts +39 -39
- package/src/command/AWSCreateCommand.ts +154 -154
- package/src/command/AWSDeleteCommand.ts +44 -44
- package/src/command/AWSFieldCommand.ts +39 -39
- package/src/command/AWSFieldCreateCommand.ts +64 -64
- package/src/command/AWSFieldDeleteCommand.ts +44 -44
- package/src/command/AWSFieldGetCommand.ts +44 -44
- package/src/command/AWSFieldListCommand.ts +44 -44
- package/src/command/AWSFieldUpdateCommand.ts +64 -64
- package/src/command/AWSGetCommand.ts +44 -44
- package/src/command/AWSListCommand.ts +44 -44
- package/src/command/AWSTagCommand.ts +39 -39
- package/src/command/AWSTagCreateCommand.ts +64 -64
- package/src/command/AWSTagDeleteCommand.ts +44 -44
- package/src/command/AWSTagGetCommand.ts +44 -44
- package/src/command/AWSTagListCommand.ts +44 -44
- package/src/command/AWSTagUpdateCommand.ts +64 -64
- package/src/command/AWSUpdateCommand.ts +154 -154
- package/src/command/AzureCategoryCommand.ts +37 -37
- package/src/command/AzureCategoryCreateCommand.ts +55 -55
- package/src/command/AzureCategoryDeleteCommand.ts +44 -44
- package/src/command/AzureCategoryGetCommand.ts +44 -44
- package/src/command/AzureCategoryListCommand.ts +44 -44
- package/src/command/AzureCommand.ts +39 -39
- package/src/command/AzureCreateCommand.ts +145 -145
- package/src/command/AzureDeleteCommand.ts +44 -44
- package/src/command/AzureFieldCommand.ts +39 -39
- package/src/command/AzureFieldCreateCommand.ts +64 -64
- package/src/command/AzureFieldDeleteCommand.ts +44 -44
- package/src/command/AzureFieldGetCommand.ts +44 -44
- package/src/command/AzureFieldListCommand.ts +44 -44
- package/src/command/AzureFieldUpdateCommand.ts +64 -64
- package/src/command/AzureGetCommand.ts +44 -44
- package/src/command/AzureListCommand.ts +44 -44
- package/src/command/AzureTagCommand.ts +39 -39
- package/src/command/AzureTagCreateCommand.ts +64 -64
- package/src/command/AzureTagDeleteCommand.ts +44 -44
- package/src/command/AzureTagGetCommand.ts +44 -44
- package/src/command/AzureTagListCommand.ts +44 -44
- package/src/command/AzureTagUpdateCommand.ts +64 -64
- package/src/command/AzureUpdateCommand.ts +145 -145
- package/src/command/GCPCategoryCommand.ts +37 -37
- package/src/command/GCPCategoryCreateCommand.ts +55 -55
- package/src/command/GCPCategoryDeleteCommand.ts +44 -44
- package/src/command/GCPCategoryGetCommand.ts +44 -44
- package/src/command/GCPCategoryListCommand.ts +44 -44
- package/src/command/GCPCommand.ts +39 -39
- package/src/command/GCPCreateCommand.ts +145 -145
- package/src/command/GCPDeleteCommand.ts +44 -44
- package/src/command/GCPFieldCommand.ts +39 -39
- package/src/command/GCPFieldCreateCommand.ts +64 -64
- package/src/command/GCPFieldDeleteCommand.ts +44 -44
- package/src/command/GCPFieldGetCommand.ts +44 -44
- package/src/command/GCPFieldListCommand.ts +44 -44
- package/src/command/GCPFieldUpdateCommand.ts +64 -64
- package/src/command/GCPGetCommand.ts +44 -44
- package/src/command/GCPListCommand.ts +44 -44
- package/src/command/GCPTagCommand.ts +39 -39
- package/src/command/GCPTagCreateCommand.ts +64 -64
- package/src/command/GCPTagDeleteCommand.ts +44 -44
- package/src/command/GCPTagGetCommand.ts +44 -44
- package/src/command/GCPTagListCommand.ts +44 -44
- package/src/command/GCPTagUpdateCommand.ts +64 -64
- package/src/command/GCPUpdateCommand.ts +145 -145
- package/src/command/HealthzCommand.ts +31 -31
- package/src/command/HealthzGetCommand.ts +44 -44
- package/src/command/RuleCategoryCommand.ts +37 -37
- package/src/command/RuleCategoryCreateCommand.ts +55 -55
- package/src/command/RuleCategoryDeleteCommand.ts +44 -44
- package/src/command/RuleCategoryGetCommand.ts +44 -44
- package/src/command/RuleCategoryListCommand.ts +44 -44
- package/src/command/RuleCommand.ts +39 -39
- package/src/command/RuleCreateCommand.ts +109 -109
- package/src/command/RuleDeleteCommand.ts +44 -44
- package/src/command/RuleFieldCommand.ts +39 -39
- package/src/command/RuleFieldCreateCommand.ts +64 -64
- package/src/command/RuleFieldDeleteCommand.ts +44 -44
- package/src/command/RuleFieldGetCommand.ts +44 -44
- package/src/command/RuleFieldListCommand.ts +44 -44
- package/src/command/RuleFieldUpdateCommand.ts +64 -64
- package/src/command/RuleGetCommand.ts +44 -44
- package/src/command/RuleListCommand.ts +44 -44
- package/src/command/RuleTagCommand.ts +39 -39
- package/src/command/RuleTagCreateCommand.ts +64 -64
- package/src/command/RuleTagDeleteCommand.ts +44 -44
- package/src/command/RuleTagGetCommand.ts +44 -44
- package/src/command/RuleTagListCommand.ts +44 -44
- package/src/command/RuleTagUpdateCommand.ts +64 -64
- package/src/command/RuleUpdateCommand.ts +109 -109
- package/src/command/ValueCommand.ts +31 -31
- package/src/command/ValueListCommand.ts +44 -44
- package/src/command/cli.ts +66 -66
- package/src/formula/BaseFormula.ts +48 -243
- package/src/formula/CalculationResult.ts +4 -4
- package/src/formula/ChangeType.ts +5 -5
- package/src/formula/FormulaDefinitionRow.ts +14 -12
- package/src/formula/FormulaRow.ts +6 -6
- package/src/formula/Formulas.ts +231 -0
- package/src/formula/statistical/Formula_InterquartileRange.ts +52 -52
- package/src/formula/statistical/amount/Formula_AmountByAverage.ts +24 -24
- package/src/formula/statistical/amount/Formula_AmountByLast.ts +24 -24
- package/src/formula/statistical/amount/Formula_AmountByMax.ts +24 -24
- package/src/formula/statistical/amount/Formula_AmountByMedian.ts +24 -24
- package/src/formula/statistical/amount/Formula_AmountByMin.ts +24 -24
- package/src/formula/statistical/percent/Formula_PercentageByAverage.ts +24 -24
- package/src/formula/statistical/percent/Formula_PercentageByLast.ts +24 -24
- package/src/formula/statistical/percent/Formula_PercentageByMax.ts +24 -24
- package/src/formula/statistical/percent/Formula_PercentageByMedian.ts +24 -24
- package/src/formula/statistical/percent/Formula_PercentageByMin.ts +24 -24
- package/src/formula/statistical/z_score/Formula_GrubbsTest.ts +64 -64
- package/src/formula/statistical/z_score/Formula_ModifiedZScore.ts +34 -34
- package/src/formula/statistical/z_score/Formula_ZScore.ts +34 -34
- package/src/formula/trend/Formula_RegressionResidual.ts +48 -48
- package/src/formula/trend/Formula_TrendDeviation.ts +44 -44
- package/src/index.ts +201 -200
- package/src/meta/AWSCategoryMetaTable.ts +57 -57
- package/src/meta/AWSFieldMetaTable.ts +59 -59
- package/src/meta/AWSMetaTable.ts +69 -69
- package/src/meta/AWSTagMetaTable.ts +59 -59
- package/src/meta/AzureCategoryMetaTable.ts +57 -57
- package/src/meta/AzureFieldMetaTable.ts +59 -59
- package/src/meta/AzureMetaTable.ts +67 -67
- package/src/meta/AzureTagMetaTable.ts +59 -59
- package/src/meta/GCPCategoryMetaTable.ts +57 -57
- package/src/meta/GCPFieldMetaTable.ts +59 -59
- package/src/meta/GCPMetaTable.ts +67 -67
- package/src/meta/GCPTagMetaTable.ts +59 -59
- package/src/meta/NamirasoftBillWatchMetaDatabase.ts +95 -95
- package/src/meta/RuleCategoryMetaTable.ts +57 -57
- package/src/meta/RuleFieldMetaTable.ts +59 -59
- package/src/meta/RuleMetaTable.ts +61 -61
- package/src/meta/RuleTagMetaTable.ts +59 -59
- package/src/row/AWSCategoryRow.ts +28 -28
- package/src/row/AWSFieldRow.ts +29 -29
- package/src/row/AWSFullRow.ts +42 -42
- package/src/row/AWSInputRow.ts +38 -38
- package/src/row/AWSRow.ts +34 -34
- package/src/row/AWSTagRow.ts +29 -29
- package/src/row/AzureCategoryRow.ts +28 -28
- package/src/row/AzureFieldRow.ts +29 -29
- package/src/row/AzureFullRow.ts +41 -41
- package/src/row/AzureInputRow.ts +37 -37
- package/src/row/AzureRow.ts +33 -33
- package/src/row/AzureTagRow.ts +29 -29
- package/src/row/EntityCategoryInputRow.ts +23 -23
- package/src/row/EntityFieldInputRow.ts +24 -24
- package/src/row/EntityTagInputRow.ts +24 -24
- package/src/row/GCPCategoryRow.ts +28 -28
- package/src/row/GCPFieldRow.ts +29 -29
- package/src/row/GCPFullRow.ts +41 -41
- package/src/row/GCPInputRow.ts +37 -37
- package/src/row/GCPRow.ts +33 -33
- package/src/row/GCPTagRow.ts +29 -29
- package/src/row/RuleCategoryRow.ts +28 -28
- package/src/row/RuleFieldRow.ts +29 -29
- package/src/row/RuleFullRow.ts +37 -37
- package/src/row/RuleInputRow.ts +33 -33
- package/src/row/RuleRow.ts +30 -30
- package/src/row/RuleTagRow.ts +29 -29
package/.ns-sdkg-dir-deep
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/src
|
|
2
|
-
/src/formula
|
|
3
|
-
/src/formula/statistical
|
|
4
|
-
/src/formula/statistical/amount
|
|
5
|
-
/src/formula/statistical/percent
|
|
6
|
-
/src/formula/statistical/z_score
|
|
1
|
+
/src
|
|
2
|
+
/src/formula
|
|
3
|
+
/src/formula/statistical
|
|
4
|
+
/src/formula/statistical/amount
|
|
5
|
+
/src/formula/statistical/percent
|
|
6
|
+
/src/formula/statistical/z_score
|
|
7
7
|
/src/formula/trend
|
package/.ns-sdkg-file-keep
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
src/formula/BaseFormula.ts
|
|
2
|
-
src/formula/CalculationResult.ts
|
|
3
|
-
src/formula/ChangeType.ts
|
|
4
|
-
src/formula/FormulaDefinitionRow.ts
|
|
5
|
-
src/formula/FormulaRow.ts
|
|
6
|
-
src/formula/
|
|
7
|
-
src/formula/statistical/amount/
|
|
8
|
-
src/formula/statistical/amount/
|
|
9
|
-
src/formula/statistical/amount/
|
|
10
|
-
src/formula/statistical/amount/
|
|
11
|
-
src/formula/statistical/
|
|
12
|
-
src/formula/statistical/percent/
|
|
13
|
-
src/formula/statistical/percent/
|
|
14
|
-
src/formula/statistical/percent/
|
|
15
|
-
src/formula/statistical/percent/
|
|
16
|
-
src/formula/statistical/
|
|
17
|
-
src/formula/statistical/z_score/
|
|
18
|
-
src/formula/statistical/z_score/
|
|
19
|
-
src/formula/statistical/
|
|
20
|
-
src/formula/
|
|
1
|
+
src/formula/BaseFormula.ts
|
|
2
|
+
src/formula/CalculationResult.ts
|
|
3
|
+
src/formula/ChangeType.ts
|
|
4
|
+
src/formula/FormulaDefinitionRow.ts
|
|
5
|
+
src/formula/FormulaRow.ts
|
|
6
|
+
src/formula/Formulas.ts
|
|
7
|
+
src/formula/statistical/amount/Formula_AmountByMedian.ts
|
|
8
|
+
src/formula/statistical/amount/Formula_AmountByMax.ts
|
|
9
|
+
src/formula/statistical/amount/Formula_AmountByLast.ts
|
|
10
|
+
src/formula/statistical/amount/Formula_AmountByAverage.ts
|
|
11
|
+
src/formula/statistical/amount/Formula_AmountByMin.ts
|
|
12
|
+
src/formula/statistical/percent/Formula_PercentageByMin.ts
|
|
13
|
+
src/formula/statistical/percent/Formula_PercentageByMedian.ts
|
|
14
|
+
src/formula/statistical/percent/Formula_PercentageByMax.ts
|
|
15
|
+
src/formula/statistical/percent/Formula_PercentageByLast.ts
|
|
16
|
+
src/formula/statistical/percent/Formula_PercentageByAverage.ts
|
|
17
|
+
src/formula/statistical/z_score/Formula_GrubbsTest.ts
|
|
18
|
+
src/formula/statistical/z_score/Formula_ModifiedZScore.ts
|
|
19
|
+
src/formula/statistical/z_score/Formula_ZScore.ts
|
|
20
|
+
src/formula/statistical/Formula_InterquartileRange.ts
|
|
21
|
+
src/formula/trend/Formula_TrendDeviation.ts
|
|
21
22
|
src/formula/trend/Formula_RegressionResidual.ts
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { CalculationResult } from "./CalculationResult";
|
|
2
2
|
import { ChangeType } from "./ChangeType";
|
|
3
|
-
import { FormulaDefinitionRow } from "./FormulaDefinitionRow";
|
|
4
3
|
export declare abstract class BaseFormula {
|
|
5
|
-
static ALL: FormulaDefinitionRow[];
|
|
6
4
|
checkLength(data: number[], min_length: number): CalculationResult | null;
|
|
7
5
|
checkChnage(change: ChangeType, difference: number, values: {
|
|
8
6
|
[name: string]: any;
|
|
@@ -2,22 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BaseFormula = void 0;
|
|
4
4
|
const ChangeType_1 = require("./ChangeType");
|
|
5
|
-
const Formula_AmountByAverage_1 = require("./statistical/amount/Formula_AmountByAverage");
|
|
6
|
-
const Formula_AmountByLast_1 = require("./statistical/amount/Formula_AmountByLast");
|
|
7
|
-
const Formula_AmountByMax_1 = require("./statistical/amount/Formula_AmountByMax");
|
|
8
|
-
const Formula_AmountByMedian_1 = require("./statistical/amount/Formula_AmountByMedian");
|
|
9
|
-
const Formula_AmountByMin_1 = require("./statistical/amount/Formula_AmountByMin");
|
|
10
|
-
const Formula_InterquartileRange_1 = require("./statistical/Formula_InterquartileRange");
|
|
11
|
-
const Formula_PercentageByAverage_1 = require("./statistical/percent/Formula_PercentageByAverage");
|
|
12
|
-
const Formula_PercentageByLast_1 = require("./statistical/percent/Formula_PercentageByLast");
|
|
13
|
-
const Formula_PercentageByMax_1 = require("./statistical/percent/Formula_PercentageByMax");
|
|
14
|
-
const Formula_PercentageByMedian_1 = require("./statistical/percent/Formula_PercentageByMedian");
|
|
15
|
-
const Formula_PercentageByMin_1 = require("./statistical/percent/Formula_PercentageByMin");
|
|
16
|
-
const Formula_GrubbsTest_1 = require("./statistical/z_score/Formula_GrubbsTest");
|
|
17
|
-
const Formula_ModifiedZScore_1 = require("./statistical/z_score/Formula_ModifiedZScore");
|
|
18
|
-
const Formula_ZScore_1 = require("./statistical/z_score/Formula_ZScore");
|
|
19
|
-
const Formula_RegressionResidual_1 = require("./trend/Formula_RegressionResidual");
|
|
20
|
-
const Formula_TrendDeviation_1 = require("./trend/Formula_TrendDeviation");
|
|
21
5
|
class BaseFormula {
|
|
22
6
|
checkLength(data, min_length) {
|
|
23
7
|
if (data.length < min_length)
|
|
@@ -56,182 +40,4 @@ class BaseFormula {
|
|
|
56
40
|
}
|
|
57
41
|
}
|
|
58
42
|
exports.BaseFormula = BaseFormula;
|
|
59
|
-
BaseFormula.ALL = [
|
|
60
|
-
{
|
|
61
|
-
name: "AmountByLast",
|
|
62
|
-
parameters: {
|
|
63
|
-
amount: {
|
|
64
|
-
default: 2,
|
|
65
|
-
min: 1,
|
|
66
|
-
max: 10000
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
getCalculator: () => new Formula_AmountByLast_1.Formula_AmountByLast()
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
name: "AmountByMin",
|
|
73
|
-
parameters: {
|
|
74
|
-
amount: {
|
|
75
|
-
default: 2,
|
|
76
|
-
min: 1,
|
|
77
|
-
max: 10000
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
getCalculator: () => new Formula_AmountByMin_1.Formula_AmountByMin()
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
name: "AmountByMax",
|
|
84
|
-
parameters: {
|
|
85
|
-
amount: {
|
|
86
|
-
default: 2,
|
|
87
|
-
min: 1,
|
|
88
|
-
max: 10000
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
getCalculator: () => new Formula_AmountByMax_1.Formula_AmountByMax()
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
name: "AmountByAverage",
|
|
95
|
-
parameters: {
|
|
96
|
-
amount: {
|
|
97
|
-
default: 2,
|
|
98
|
-
min: 1,
|
|
99
|
-
max: 10000
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
getCalculator: () => new Formula_AmountByAverage_1.Formula_AmountByAverage()
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name: "AmountByMedian",
|
|
106
|
-
parameters: {
|
|
107
|
-
amount: {
|
|
108
|
-
default: 2,
|
|
109
|
-
min: 1,
|
|
110
|
-
max: 10000
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
getCalculator: () => new Formula_AmountByMedian_1.Formula_AmountByMedian()
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: "PercentageByLast",
|
|
117
|
-
parameters: {
|
|
118
|
-
percent: {
|
|
119
|
-
default: 5,
|
|
120
|
-
min: 1,
|
|
121
|
-
max: 100
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
getCalculator: () => new Formula_PercentageByLast_1.Formula_PercentageByLast()
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
name: "PercentageByMin",
|
|
128
|
-
parameters: {
|
|
129
|
-
percent: {
|
|
130
|
-
default: 5,
|
|
131
|
-
min: 1,
|
|
132
|
-
max: 100
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
getCalculator: () => new Formula_PercentageByMin_1.Formula_PercentageByMin()
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
name: "PercentageByMax",
|
|
139
|
-
parameters: {
|
|
140
|
-
percent: {
|
|
141
|
-
default: 5,
|
|
142
|
-
min: 1,
|
|
143
|
-
max: 100
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
getCalculator: () => new Formula_PercentageByMax_1.Formula_PercentageByMax()
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
name: "PercentageByAverage",
|
|
150
|
-
parameters: {
|
|
151
|
-
percent: {
|
|
152
|
-
default: 5,
|
|
153
|
-
min: 1,
|
|
154
|
-
max: 100
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
getCalculator: () => new Formula_PercentageByAverage_1.Formula_PercentageByAverage()
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
name: "PercentageByMedian",
|
|
161
|
-
parameters: {
|
|
162
|
-
percent: {
|
|
163
|
-
default: 5,
|
|
164
|
-
min: 1,
|
|
165
|
-
max: 100
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
getCalculator: () => new Formula_PercentageByMedian_1.Formula_PercentageByMedian()
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
name: "ZScore",
|
|
172
|
-
parameters: {
|
|
173
|
-
threshold: {
|
|
174
|
-
default: 2,
|
|
175
|
-
min: 1,
|
|
176
|
-
max: 5
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
getCalculator: () => new Formula_ZScore_1.Formula_ZScore()
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
name: "ModifiedZScore",
|
|
183
|
-
parameters: {
|
|
184
|
-
threshold: {
|
|
185
|
-
default: 3.5,
|
|
186
|
-
min: 2,
|
|
187
|
-
max: 5
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
getCalculator: () => new Formula_ModifiedZScore_1.Formula_ModifiedZScore()
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
name: "GrubbsTest",
|
|
194
|
-
parameters: {
|
|
195
|
-
rough_threshold: {
|
|
196
|
-
default: 0.05,
|
|
197
|
-
min: 0.001,
|
|
198
|
-
max: 0.1
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
getCalculator: () => new Formula_GrubbsTest_1.Formula_GrubbsTest()
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
name: "InterquartileRange",
|
|
205
|
-
parameters: {
|
|
206
|
-
multiplier: {
|
|
207
|
-
default: 1.5,
|
|
208
|
-
min: 1,
|
|
209
|
-
max: 3
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
getCalculator: () => new Formula_InterquartileRange_1.Formula_InterquartileRange()
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
name: "RegressionResidual",
|
|
216
|
-
parameters: {
|
|
217
|
-
threshold: {
|
|
218
|
-
default: 2,
|
|
219
|
-
min: 1,
|
|
220
|
-
max: 5
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
getCalculator: () => new Formula_RegressionResidual_1.Formula_RegressionResidual()
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
name: "TrendDeviation",
|
|
227
|
-
parameters: {
|
|
228
|
-
threshold: {
|
|
229
|
-
default: 1,
|
|
230
|
-
min: 0.1,
|
|
231
|
-
max: 2
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
getCalculator: () => new Formula_TrendDeviation_1.Formula_TrendDeviation()
|
|
235
|
-
},
|
|
236
|
-
];
|
|
237
43
|
//# sourceMappingURL=BaseFormula.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseFormula.js","sourceRoot":"","sources":["../../src/formula/BaseFormula.ts"],"names":[],"mappings":";;;AACA,6CAA0C;AAE1C,
|
|
1
|
+
{"version":3,"file":"BaseFormula.js","sourceRoot":"","sources":["../../src/formula/BaseFormula.ts"],"names":[],"mappings":";;;AACA,6CAA0C;AAE1C,MAAsB,WAAW;IAE7B,WAAW,CAAC,IAAc,EAAE,UAAkB;QAE1C,IAAI,IAAI,CAAC,MAAM,GAAG,UAAU;YACxB,OAAO;gBACH,KAAK,EAAE,IAAI;gBACX,MAAM,EAAE,+BAA+B;gBACvC,MAAM,EAAE,EAAE,QAAQ,EAAE,WAAW,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE;aACvE,CAAC;QACN,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,WAAW,CAAC,MAAkB,EAAE,UAAkB,EAAE,MAA+B;QAE/E,IAAI,MAAM,IAAI,uBAAU,CAAC,SAAS;YAC9B,IAAI,UAAU,GAAG,CAAC;gBACd,OAAO;oBACH,KAAK,EAAE,IAAI;oBACX,MAAM,EAAE,uEAAuE;oBAC/E,MAAM;iBACT,CAAC;QAEV,IAAI,MAAM,IAAI,uBAAU,CAAC,SAAS;YAC9B,IAAI,UAAU,GAAG,CAAC;gBACd,OAAO;oBACH,KAAK,EAAE,IAAI;oBACX,MAAM,EAAE,uEAAuE;oBAC/E,MAAM;iBACT,CAAC;QAEV,OAAO,IAAI,CAAC;IAChB,CAAC;IACS,MAAM,CAAC,MAAM,CAAC,GAAa;QAEjC,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC;YAChB,OAAO,GAAG,CAAC;QAEf,MAAM,MAAM,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAC9C,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAE1C,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC;YACvB,OAAO,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;QAC/C,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;IACvB,CAAC;CAEJ;AA7CD,kCA6CC"}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Formulas = void 0;
|
|
4
|
+
const Formula_AmountByAverage_1 = require("./statistical/amount/Formula_AmountByAverage");
|
|
5
|
+
const Formula_AmountByLast_1 = require("./statistical/amount/Formula_AmountByLast");
|
|
6
|
+
const Formula_AmountByMax_1 = require("./statistical/amount/Formula_AmountByMax");
|
|
7
|
+
const Formula_AmountByMedian_1 = require("./statistical/amount/Formula_AmountByMedian");
|
|
8
|
+
const Formula_AmountByMin_1 = require("./statistical/amount/Formula_AmountByMin");
|
|
9
|
+
const Formula_InterquartileRange_1 = require("./statistical/Formula_InterquartileRange");
|
|
10
|
+
const Formula_PercentageByAverage_1 = require("./statistical/percent/Formula_PercentageByAverage");
|
|
11
|
+
const Formula_PercentageByLast_1 = require("./statistical/percent/Formula_PercentageByLast");
|
|
12
|
+
const Formula_PercentageByMax_1 = require("./statistical/percent/Formula_PercentageByMax");
|
|
13
|
+
const Formula_PercentageByMedian_1 = require("./statistical/percent/Formula_PercentageByMedian");
|
|
14
|
+
const Formula_PercentageByMin_1 = require("./statistical/percent/Formula_PercentageByMin");
|
|
15
|
+
const Formula_GrubbsTest_1 = require("./statistical/z_score/Formula_GrubbsTest");
|
|
16
|
+
const Formula_ModifiedZScore_1 = require("./statistical/z_score/Formula_ModifiedZScore");
|
|
17
|
+
const Formula_ZScore_1 = require("./statistical/z_score/Formula_ZScore");
|
|
18
|
+
const Formula_RegressionResidual_1 = require("./trend/Formula_RegressionResidual");
|
|
19
|
+
const Formula_TrendDeviation_1 = require("./trend/Formula_TrendDeviation");
|
|
20
|
+
class Formulas {
|
|
21
|
+
}
|
|
22
|
+
exports.Formulas = Formulas;
|
|
23
|
+
Formulas.ALL = [
|
|
24
|
+
{
|
|
25
|
+
name: "AmountByLast",
|
|
26
|
+
parameters: {
|
|
27
|
+
threshold: {
|
|
28
|
+
default: 2,
|
|
29
|
+
min: 1,
|
|
30
|
+
max: 10000
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
description: "Flags anomaly if the difference from the last value exceeds the threshold",
|
|
34
|
+
learn_more: "",
|
|
35
|
+
getCalculator: () => new Formula_AmountByLast_1.Formula_AmountByLast()
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "AmountByMin",
|
|
39
|
+
parameters: {
|
|
40
|
+
threshold: {
|
|
41
|
+
default: 2,
|
|
42
|
+
min: 1,
|
|
43
|
+
max: 10000
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
description: "Flags anomaly if the differnce from the minimum of previous values exceeds the threshold",
|
|
47
|
+
learn_more: "",
|
|
48
|
+
getCalculator: () => new Formula_AmountByMin_1.Formula_AmountByMin()
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "AmountByMax",
|
|
52
|
+
parameters: {
|
|
53
|
+
threshold: {
|
|
54
|
+
default: 2,
|
|
55
|
+
min: 1,
|
|
56
|
+
max: 10000
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
description: "Flags anomaly if the differnce from the maximum of previous values exceeds the threshold",
|
|
60
|
+
learn_more: "",
|
|
61
|
+
getCalculator: () => new Formula_AmountByMax_1.Formula_AmountByMax()
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "AmountByAverage",
|
|
65
|
+
parameters: {
|
|
66
|
+
threshold: {
|
|
67
|
+
default: 2,
|
|
68
|
+
min: 1,
|
|
69
|
+
max: 10000
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
description: "Flags anomaly if the differnce from the average of previous values exceeds the threshold",
|
|
73
|
+
learn_more: "",
|
|
74
|
+
getCalculator: () => new Formula_AmountByAverage_1.Formula_AmountByAverage()
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "AmountByMedian",
|
|
78
|
+
parameters: {
|
|
79
|
+
threshold: {
|
|
80
|
+
default: 2,
|
|
81
|
+
min: 1,
|
|
82
|
+
max: 10000
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
description: "Flags anomaly if the differnce from the median of previous values exceeds the threshold",
|
|
86
|
+
learn_more: "",
|
|
87
|
+
getCalculator: () => new Formula_AmountByMedian_1.Formula_AmountByMedian()
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "PercentageByLast",
|
|
91
|
+
parameters: {
|
|
92
|
+
threshold: {
|
|
93
|
+
default: 5,
|
|
94
|
+
min: 1,
|
|
95
|
+
max: 100
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
description: "Flags anomaly if the percentage change from the last value exceeds the threshold",
|
|
99
|
+
learn_more: "",
|
|
100
|
+
getCalculator: () => new Formula_PercentageByLast_1.Formula_PercentageByLast()
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: "PercentageByMin",
|
|
104
|
+
parameters: {
|
|
105
|
+
threshold: {
|
|
106
|
+
default: 5,
|
|
107
|
+
min: 1,
|
|
108
|
+
max: 100
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
description: "Flags anomaly if the percentage change from the minimum of previous values exceeds the threshold",
|
|
112
|
+
learn_more: "",
|
|
113
|
+
getCalculator: () => new Formula_PercentageByMin_1.Formula_PercentageByMin()
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: "PercentageByMax",
|
|
117
|
+
parameters: {
|
|
118
|
+
threshold: {
|
|
119
|
+
default: 5,
|
|
120
|
+
min: 1,
|
|
121
|
+
max: 100
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
description: "Flags anomaly if the percentage change from the maximum of previous values exceeds the threshold",
|
|
125
|
+
learn_more: "",
|
|
126
|
+
getCalculator: () => new Formula_PercentageByMax_1.Formula_PercentageByMax()
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: "PercentageByAverage",
|
|
130
|
+
parameters: {
|
|
131
|
+
threshold: {
|
|
132
|
+
default: 5,
|
|
133
|
+
min: 1,
|
|
134
|
+
max: 100
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
description: "Flags anomaly if the percentage change from the average of previous values exceeds the threshold",
|
|
138
|
+
learn_more: "",
|
|
139
|
+
getCalculator: () => new Formula_PercentageByAverage_1.Formula_PercentageByAverage()
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: "PercentageByMedian",
|
|
143
|
+
parameters: {
|
|
144
|
+
threshold: {
|
|
145
|
+
default: 5,
|
|
146
|
+
min: 1,
|
|
147
|
+
max: 100
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
description: "Flags anomaly if the percentage change from the median of previous values exceeds the threshold",
|
|
151
|
+
learn_more: "",
|
|
152
|
+
getCalculator: () => new Formula_PercentageByMedian_1.Formula_PercentageByMedian()
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: "ZScore",
|
|
156
|
+
parameters: {
|
|
157
|
+
threshold: {
|
|
158
|
+
default: 2,
|
|
159
|
+
min: 1,
|
|
160
|
+
max: 5
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
description: "Flags anomaly if a value's z-score exceeds the threshold, indicating it is far from the mean.",
|
|
164
|
+
learn_more: "",
|
|
165
|
+
getCalculator: () => new Formula_ZScore_1.Formula_ZScore()
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: "ModifiedZScore",
|
|
169
|
+
parameters: {
|
|
170
|
+
threshold: {
|
|
171
|
+
default: 3.5,
|
|
172
|
+
min: 2,
|
|
173
|
+
max: 5
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
description: "Flags anomaly like z-score but uses the median and MAD",
|
|
177
|
+
learn_more: "",
|
|
178
|
+
getCalculator: () => new Formula_ModifiedZScore_1.Formula_ModifiedZScore()
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: "GrubbsTest",
|
|
182
|
+
parameters: {
|
|
183
|
+
rough_threshold: {
|
|
184
|
+
default: 0.05,
|
|
185
|
+
min: 0.001,
|
|
186
|
+
max: 0.1
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
description: "A formal statistical test to determine whether the latest value is an outlier",
|
|
190
|
+
learn_more: "",
|
|
191
|
+
getCalculator: () => new Formula_GrubbsTest_1.Formula_GrubbsTest()
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: "InterquartileRange",
|
|
195
|
+
parameters: {
|
|
196
|
+
multiplier: {
|
|
197
|
+
default: 1.5,
|
|
198
|
+
min: 1,
|
|
199
|
+
max: 3
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
description: "Flags anomaly if a value falls outside the IQR range, scaled by a multiplier",
|
|
203
|
+
learn_more: "",
|
|
204
|
+
getCalculator: () => new Formula_InterquartileRange_1.Formula_InterquartileRange()
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: "RegressionResidual",
|
|
208
|
+
parameters: {
|
|
209
|
+
threshold: {
|
|
210
|
+
default: 2,
|
|
211
|
+
min: 1,
|
|
212
|
+
max: 5
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
description: "Flags anomaly based on how far the current value is from a linear regression prediction",
|
|
216
|
+
learn_more: "",
|
|
217
|
+
getCalculator: () => new Formula_RegressionResidual_1.Formula_RegressionResidual()
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: "TrendDeviation",
|
|
221
|
+
parameters: {
|
|
222
|
+
threshold: {
|
|
223
|
+
default: 1,
|
|
224
|
+
min: 0.1,
|
|
225
|
+
max: 2
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
description: "Flags anomaly if the value deviates from an estimated trend line beyond the threshold",
|
|
229
|
+
learn_more: "",
|
|
230
|
+
getCalculator: () => new Formula_TrendDeviation_1.Formula_TrendDeviation()
|
|
231
|
+
},
|
|
232
|
+
];
|
|
233
|
+
//# sourceMappingURL=Formulas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Formulas.js","sourceRoot":"","sources":["../../src/formula/Formulas.ts"],"names":[],"mappings":";;;AACA,0FAAuF;AACvF,oFAAiF;AACjF,kFAA+E;AAC/E,wFAAqF;AACrF,kFAA+E;AAC/E,yFAAsF;AACtF,mGAAgG;AAChG,6FAA0F;AAC1F,2FAAwF;AACxF,iGAA8F;AAC9F,2FAAwF;AACxF,iFAA8E;AAC9E,yFAAsF;AACtF,yEAAsE;AACtE,mFAAgF;AAChF,2EAAwE;AAExE,MAAa,QAAQ;;AAArB,4BAoNC;AAlNU,YAAG,GAA2B;IACjC;QACI,IAAI,EAAE,cAAc;QACpB,UAAU,EAAE;YACR,SAAS,EAAE;gBACP,OAAO,EAAE,CAAC;gBACV,GAAG,EAAE,CAAC;gBACN,GAAG,EAAE,KAAK;aACb;SACJ;QACD,WAAW,EAAE,2EAA2E;QACxF,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,GAAG,EAAE,CAAC,IAAI,2CAAoB,EAAE;KAClD;IACD;QACI,IAAI,EAAE,aAAa;QACnB,UAAU,EAAE;YACR,SAAS,EAAE;gBACP,OAAO,EAAE,CAAC;gBACV,GAAG,EAAE,CAAC;gBACN,GAAG,EAAE,KAAK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,aAAa,EAAE,GAAG,EAAE,CAAC,IAAI,+CAAsB,EAAE;KACpD;CACJ,CAAC"}
|
|
@@ -3,6 +3,6 @@ import { CalculationResult } from "../../CalculationResult";
|
|
|
3
3
|
import { ChangeType } from "../../ChangeType";
|
|
4
4
|
export declare class Formula_AmountByAverage extends BaseFormula {
|
|
5
5
|
evaluate(data: number[], value: number, change: ChangeType, parameters: {
|
|
6
|
-
|
|
6
|
+
threshold: number;
|
|
7
7
|
}): CalculationResult;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Formula_AmountByAverage.js","sourceRoot":"","sources":["../../../../src/formula/statistical/amount/Formula_AmountByAverage.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAIhD,MAAa,uBAAwB,SAAQ,yBAAW;IAEpD,QAAQ,CAAC,IAAc,EAAE,KAAa,EAAE,MAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"Formula_AmountByAverage.js","sourceRoot":"","sources":["../../../../src/formula/statistical/amount/Formula_AmountByAverage.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAIhD,MAAa,uBAAwB,SAAQ,yBAAW;IAEpD,QAAQ,CAAC,IAAc,EAAE,KAAa,EAAE,MAAkB,EAAE,UAAiC;QAEzF,IAAI,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QACpC,IAAI,GAAG;YACH,OAAO,GAAG,CAAC;QAEf,IAAI,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QACzD,IAAI,UAAU,GAAG,KAAK,GAAG,IAAI,CAAC;QAE9B,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;QACjE,IAAI,GAAG;YACH,OAAO,GAAG,CAAC;QAEf,OAAO;YACH,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,SAAS;YACnD,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;SAC/B,CAAC;IACN,CAAC;CACJ;AApBD,0DAoBC"}
|
|
@@ -3,6 +3,6 @@ import { CalculationResult } from "../../CalculationResult";
|
|
|
3
3
|
import { ChangeType } from "../../ChangeType";
|
|
4
4
|
export declare class Formula_AmountByLast extends BaseFormula {
|
|
5
5
|
evaluate(data: number[], value: number, change: ChangeType, parameters: {
|
|
6
|
-
|
|
6
|
+
threshold: number;
|
|
7
7
|
}): CalculationResult;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Formula_AmountByLast.js","sourceRoot":"","sources":["../../../../src/formula/statistical/amount/Formula_AmountByLast.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAIhD,MAAa,oBAAqB,SAAQ,yBAAW;IAEjD,QAAQ,CAAC,IAAc,EAAE,KAAa,EAAE,MAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"Formula_AmountByLast.js","sourceRoot":"","sources":["../../../../src/formula/statistical/amount/Formula_AmountByLast.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAIhD,MAAa,oBAAqB,SAAQ,yBAAW;IAEjD,QAAQ,CAAC,IAAc,EAAE,KAAa,EAAE,MAAkB,EAAE,UAAiC;QAEzF,IAAI,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QACpC,IAAI,GAAG;YACH,OAAO,GAAG,CAAC;QAEf,IAAI,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACjC,IAAI,UAAU,GAAG,KAAK,GAAG,IAAI,CAAC;QAE9B,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;QACjE,IAAI,GAAG;YACH,OAAO,GAAG,CAAC;QAEf,OAAO;YACH,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,SAAS;YACnD,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;SAC/B,CAAC;IACN,CAAC;CACJ;AApBD,oDAoBC"}
|
|
@@ -3,6 +3,6 @@ import { CalculationResult } from "../../CalculationResult";
|
|
|
3
3
|
import { ChangeType } from "../../ChangeType";
|
|
4
4
|
export declare class Formula_AmountByMax extends BaseFormula {
|
|
5
5
|
evaluate(data: number[], value: number, change: ChangeType, parameters: {
|
|
6
|
-
|
|
6
|
+
threshold: number;
|
|
7
7
|
}): CalculationResult;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Formula_AmountByMax.js","sourceRoot":"","sources":["../../../../src/formula/statistical/amount/Formula_AmountByMax.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAIhD,MAAa,mBAAoB,SAAQ,yBAAW;IAEhD,QAAQ,CAAC,IAAc,EAAE,KAAa,EAAE,MAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"Formula_AmountByMax.js","sourceRoot":"","sources":["../../../../src/formula/statistical/amount/Formula_AmountByMax.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAIhD,MAAa,mBAAoB,SAAQ,yBAAW;IAEhD,QAAQ,CAAC,IAAc,EAAE,KAAa,EAAE,MAAkB,EAAE,UAAiC;QAEzF,IAAI,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QACpC,IAAI,GAAG;YACH,OAAO,GAAG,CAAC;QAEf,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;QAC5B,IAAI,UAAU,GAAG,KAAK,GAAG,GAAG,CAAC;QAE7B,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE,CAAC,CAAC;QAChE,IAAI,GAAG;YACH,OAAO,GAAG,CAAC;QAEf,OAAO;YACH,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,SAAS;YACnD,MAAM,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE;SAC9B,CAAC;IACN,CAAC;CACJ;AApBD,kDAoBC"}
|
|
@@ -3,6 +3,6 @@ import { CalculationResult } from "../../CalculationResult";
|
|
|
3
3
|
import { ChangeType } from "../../ChangeType";
|
|
4
4
|
export declare class Formula_AmountByMedian extends BaseFormula {
|
|
5
5
|
evaluate(data: number[], value: number, change: ChangeType, parameters: {
|
|
6
|
-
|
|
6
|
+
threshold: number;
|
|
7
7
|
}): CalculationResult;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Formula_AmountByMedian.js","sourceRoot":"","sources":["../../../../src/formula/statistical/amount/Formula_AmountByMedian.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAIhD,MAAa,sBAAuB,SAAQ,yBAAW;IAEnD,QAAQ,CAAC,IAAc,EAAE,KAAa,EAAE,MAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"Formula_AmountByMedian.js","sourceRoot":"","sources":["../../../../src/formula/statistical/amount/Formula_AmountByMedian.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAIhD,MAAa,sBAAuB,SAAQ,yBAAW;IAEnD,QAAQ,CAAC,IAAc,EAAE,KAAa,EAAE,MAAkB,EAAE,UAAiC;QAEzF,IAAI,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QACpC,IAAI,GAAG;YACH,OAAO,GAAG,CAAC;QAEf,IAAI,MAAM,GAAG,yBAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,UAAU,GAAG,KAAK,GAAG,MAAM,CAAC;QAEhC,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;QACnE,IAAI,GAAG;YACH,OAAO,GAAG,CAAC;QAEf,OAAO;YACH,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,SAAS;YACnD,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE;SACjC,CAAC;IACN,CAAC;CACJ;AApBD,wDAoBC"}
|