@univerjs/engine-formula 0.4.2 → 0.5.0-alpha.0
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/lib/cjs/facade.js +1 -0
- package/lib/cjs/index.js +2 -2
- package/lib/es/facade.js +79 -0
- package/lib/es/index.js +23862 -21567
- package/lib/types/basics/common.d.ts +6 -2
- package/lib/types/basics/format.d.ts +2 -15
- package/lib/types/basics/math.d.ts +3 -0
- package/lib/types/basics/statistical.d.ts +19 -3
- package/lib/types/commands/mutations/set-other-formula.mutation.d.ts +2 -2
- package/lib/types/controller/calculate.controller.d.ts +2 -2
- package/lib/types/engine/analysis/parser.d.ts +0 -2
- package/lib/types/engine/ast-node/base-ast-node.d.ts +1 -0
- package/lib/types/engine/ast-node/function-node.d.ts +5 -2
- package/lib/types/engine/ast-node/operator-node.d.ts +1 -2
- package/lib/types/engine/ast-node/prefix-node.d.ts +6 -5
- package/lib/types/engine/ast-node/reference-node.d.ts +8 -10
- package/lib/types/engine/ast-node/suffix-node.d.ts +8 -5
- package/lib/types/engine/ast-node/union-node.d.ts +1 -2
- package/lib/types/engine/ast-node/value-node.d.ts +1 -2
- package/lib/types/engine/dependency/dependency-tree.d.ts +85 -38
- package/lib/types/engine/dependency/formula-dependency.d.ts +45 -36
- package/lib/types/engine/interpreter/interpreter.d.ts +3 -3
- package/lib/types/engine/utils/array-object.d.ts +1 -1
- package/lib/types/engine/utils/ast-node-tool.d.ts +1 -1
- package/lib/types/engine/utils/generate-ast-node.d.ts +8 -0
- package/lib/types/engine/utils/prefixHandler.d.ts +3 -2
- package/lib/types/engine/utils/value-object.d.ts +9 -1
- package/lib/types/engine/value-object/__tests__/array-inverted-index-cache.spec.d.ts +16 -0
- package/lib/types/engine/value-object/__tests__/array-inverted-index-cache2.spec.d.ts +16 -0
- package/lib/types/engine/value-object/cube-value-object.d.ts +1 -0
- package/lib/types/engine/value-object/lambda-value-object.d.ts +3 -1
- package/lib/types/engine/value-object/primitive-object.d.ts +0 -1
- package/lib/types/facade/f-formula.d.ts +31 -0
- package/lib/types/facade/f-univer.d.ts +9 -0
- package/lib/types/facade/index.d.ts +17 -0
- package/lib/types/functions/base-function.d.ts +7 -0
- package/lib/types/functions/compatibility/hypgeomdist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/compatibility/hypgeomdist/index.d.ts +8 -0
- package/lib/types/functions/compatibility/lognormdist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/compatibility/lognormdist/index.d.ts +8 -0
- package/lib/types/functions/compatibility/negbinomdist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/compatibility/negbinomdist/index.d.ts +8 -0
- package/lib/types/functions/compatibility/tdist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/compatibility/tdist/index.d.ts +8 -0
- package/lib/types/functions/financial/fv/index.d.ts +1 -1
- package/lib/types/functions/financial/ipmt/index.d.ts +1 -1
- package/lib/types/functions/financial/pmt/index.d.ts +1 -1
- package/lib/types/functions/financial/ppmt/index.d.ts +1 -1
- package/lib/types/functions/financial/pv/index.d.ts +1 -1
- package/lib/types/functions/lookup/formulatext/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/lookup/formulatext/index.d.ts +10 -0
- package/lib/types/functions/lookup/lookup/index.d.ts +1 -1
- package/lib/types/functions/math/mmult/index.d.ts +0 -1
- package/lib/types/functions/statistical/frequency/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/frequency/index.d.ts +9 -0
- package/lib/types/functions/statistical/gamma/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/gamma/index.d.ts +8 -0
- package/lib/types/functions/statistical/gamma-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/gamma-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/gamma-inv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/gamma-inv/index.d.ts +8 -0
- package/lib/types/functions/statistical/gammaln/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/gammaln/index.d.ts +8 -0
- package/lib/types/functions/statistical/gauss/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/gauss/index.d.ts +8 -0
- package/lib/types/functions/statistical/geomean/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/geomean/index.d.ts +7 -0
- package/lib/types/functions/statistical/growth/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/growth/index.d.ts +16 -0
- package/lib/types/functions/statistical/harmean/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/harmean/index.d.ts +7 -0
- package/lib/types/functions/statistical/hypgeom-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/hypgeom-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/kurt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/kurt/index.d.ts +8 -0
- package/lib/types/functions/statistical/large/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/large/index.d.ts +9 -0
- package/lib/types/functions/statistical/lognorm-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/lognorm-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/lognorm-inv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/lognorm-inv/index.d.ts +8 -0
- package/lib/types/functions/statistical/median/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/median/index.d.ts +8 -0
- package/lib/types/functions/statistical/mode-mult/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/mode-mult/index.d.ts +8 -0
- package/lib/types/functions/statistical/mode-sngl/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/mode-sngl/index.d.ts +8 -0
- package/lib/types/functions/statistical/negbinom-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/negbinom-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/pearson/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/pearson/index.d.ts +8 -0
- package/lib/types/functions/statistical/percentile-exc/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/percentile-exc/index.d.ts +9 -0
- package/lib/types/functions/statistical/percentile-inc/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/percentile-inc/index.d.ts +9 -0
- package/lib/types/functions/statistical/percentrank-exc/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/percentrank-exc/index.d.ts +9 -0
- package/lib/types/functions/statistical/percentrank-inc/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/percentrank-inc/index.d.ts +9 -0
- package/lib/types/functions/statistical/permut/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/permut/index.d.ts +7 -0
- package/lib/types/functions/statistical/permutationa/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/permutationa/index.d.ts +7 -0
- package/lib/types/functions/statistical/phi/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/phi/index.d.ts +8 -0
- package/lib/types/functions/statistical/poisson-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/poisson-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/prob/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/prob/index.d.ts +9 -0
- package/lib/types/functions/statistical/quartile-exc/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/quartile-exc/index.d.ts +9 -0
- package/lib/types/functions/statistical/quartile-inc/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/quartile-inc/index.d.ts +9 -0
- package/lib/types/functions/statistical/rsq/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/rsq/index.d.ts +8 -0
- package/lib/types/functions/statistical/skew/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/skew/index.d.ts +8 -0
- package/lib/types/functions/statistical/skew-p/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/skew-p/index.d.ts +8 -0
- package/lib/types/functions/statistical/slope/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/slope/index.d.ts +8 -0
- package/lib/types/functions/statistical/small/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/small/index.d.ts +9 -0
- package/lib/types/functions/statistical/standardize/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/standardize/index.d.ts +8 -0
- package/lib/types/functions/statistical/steyx/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/steyx/index.d.ts +8 -0
- package/lib/types/functions/statistical/t-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/t-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/t-dist-2t/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/t-dist-2t/index.d.ts +8 -0
- package/lib/types/functions/statistical/t-dist-rt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/t-dist-rt/index.d.ts +8 -0
- package/lib/types/functions/statistical/t-inv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/t-inv/index.d.ts +8 -0
- package/lib/types/functions/statistical/t-inv-2t/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/t-inv-2t/index.d.ts +8 -0
- package/lib/types/functions/statistical/t-test/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/t-test/index.d.ts +14 -0
- package/lib/types/functions/statistical/trimmean/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/trimmean/index.d.ts +9 -0
- package/lib/types/functions/statistical/weibull-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/weibull-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/z-test/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/z-test/index.d.ts +9 -0
- package/lib/types/functions/text/exact/index.d.ts +1 -1
- package/lib/types/functions/text/find/__test__/index.spec.d.ts +16 -0
- package/lib/types/functions/text/find/index.d.ts +8 -0
- package/lib/types/functions/text/findb/__test__/index.spec.d.ts +16 -0
- package/lib/types/functions/text/findb/index.d.ts +8 -0
- package/lib/types/functions/text/function-map.d.ts +1 -2
- package/lib/types/functions/text/left/__test__/index.spec.d.ts +16 -0
- package/lib/types/functions/text/left/index.d.ts +8 -0
- package/lib/types/functions/text/lower/index.d.ts +2 -3
- package/lib/types/functions/text/mid/index.d.ts +2 -2
- package/lib/types/functions/text/midb/__test__/index.spec.d.ts +16 -0
- package/lib/types/functions/text/midb/index.d.ts +8 -0
- package/lib/types/functions/text/proper/index.d.ts +1 -1
- package/lib/types/functions/text/replace/__test__/index.spec.d.ts +16 -0
- package/lib/types/functions/text/replace/index.d.ts +8 -0
- package/lib/types/functions/text/replaceb/__test__/index.spec.d.ts +16 -0
- package/lib/types/functions/text/replaceb/index.d.ts +8 -0
- package/lib/types/functions/text/search/__test__/index.spec.d.ts +16 -0
- package/lib/types/functions/text/search/index.d.ts +8 -0
- package/lib/types/functions/text/searchb/__test__/index.spec.d.ts +16 -0
- package/lib/types/functions/text/searchb/index.d.ts +8 -0
- package/lib/types/functions/text/t/index.d.ts +1 -1
- package/lib/types/functions/text/textjoin/__test__/index.spec.d.ts +16 -0
- package/lib/types/functions/text/textjoin/index.d.ts +10 -0
- package/lib/types/functions/text/trim/__test__/index.spec.d.ts +16 -0
- package/lib/types/functions/text/trim/index.d.ts +8 -0
- package/lib/types/functions/text/upper/__test__/index.spec.d.ts +16 -0
- package/lib/types/functions/text/upper/index.d.ts +8 -0
- package/lib/types/index.d.ts +13 -2
- package/lib/types/models/formula-data.model.d.ts +6 -1
- package/lib/types/plugin.d.ts +3 -2
- package/lib/types/services/calculate-formula.service.d.ts +25 -14
- package/lib/types/services/dependency-manager.service.d.ts +70 -69
- package/lib/types/services/other-formula-manager.service.d.ts +4 -4
- package/lib/types/services/runtime.service.d.ts +2 -2
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +2 -2
- package/package.json +21 -11
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Nullable } from '@univerjs/core';
|
|
2
|
+
import { IFormulaCurrentConfigService } from '../../services/current-data.service';
|
|
3
|
+
import { Lexer } from '../analysis/lexer';
|
|
4
|
+
import { AstTreeBuilder } from '../analysis/parser';
|
|
5
|
+
import { AstRootNode } from '../ast-node/ast-root-node';
|
|
6
|
+
import { IFormulaDependencyTree } from '../dependency/dependency-tree';
|
|
7
|
+
export declare function generateAstNode(unitId: string, formulaString: string, lexer: Lexer, astTreeBuilder: AstTreeBuilder, currentConfigService: IFormulaCurrentConfigService): AstRootNode;
|
|
8
|
+
export declare function includeDefinedName(tree: IFormulaDependencyTree, node: Nullable<AstRootNode>, currentConfigService: IFormulaCurrentConfigService): boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Nullable } from '@univerjs/core';
|
|
2
2
|
import { IFunctionService } from '../../services/function.service';
|
|
3
|
+
import { IFormulaRuntimeService } from '../../services/runtime.service';
|
|
3
4
|
import { PrefixNode } from '../ast-node/prefix-node';
|
|
4
|
-
export declare function prefixHandler(tokenTrimParam: string, functionService: IFunctionService,
|
|
5
|
+
export declare function prefixHandler(tokenTrimParam: string, functionService: IFunctionService, runtimeService: IFormulaRuntimeService): {
|
|
5
6
|
tokenTrim: string;
|
|
6
7
|
minusPrefixNode: Nullable<PrefixNode>;
|
|
7
8
|
atPrefixNode: Nullable<PrefixNode>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ICellData, Nullable } from '@univerjs/core';
|
|
2
|
-
import { FunctionVariantType } from '../reference-object/base-reference-object';
|
|
2
|
+
import { BaseReferenceObject, FunctionVariantType } from '../reference-object/base-reference-object';
|
|
3
3
|
import { ArrayValueObject } from '../value-object/array-value-object';
|
|
4
4
|
import { BaseValueObject } from '../value-object/base-value-object';
|
|
5
5
|
import { NumberValueObject } from '../value-object/primitive-object';
|
|
@@ -37,3 +37,11 @@ export declare function filterSameValueObjectResult(array: ArrayValueObject, ran
|
|
|
37
37
|
* @returns
|
|
38
38
|
*/
|
|
39
39
|
export declare function isSameValueObjectType(left: BaseValueObject, right: BaseValueObject): boolean;
|
|
40
|
+
export declare enum ReferenceObjectType {
|
|
41
|
+
CELL = 0,
|
|
42
|
+
COLUMN = 1,
|
|
43
|
+
ROW = 2
|
|
44
|
+
}
|
|
45
|
+
export declare function getReferenceObjectFromCache(trimToken: string, type: ReferenceObjectType): BaseReferenceObject;
|
|
46
|
+
export declare function getRangeReferenceObjectFromCache(variant1: BaseReferenceObject, variant2: BaseReferenceObject): FunctionVariantType;
|
|
47
|
+
export declare function clearReferenceObjectCache(): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Nullable } from '@univerjs/core';
|
|
1
2
|
import { BaseAstNode } from '../ast-node/base-ast-node';
|
|
2
3
|
import { Interpreter } from '../interpreter/interpreter';
|
|
3
4
|
import { FunctionVariantType, AsyncObject } from '../reference-object/base-reference-object';
|
|
@@ -8,7 +9,8 @@ export declare class LambdaValueObjectObject extends BaseValueObject {
|
|
|
8
9
|
private _lambdaPrivacyVarKeys;
|
|
9
10
|
static create(lambdaNode: BaseAstNode, interpreter: Interpreter, lambdaPrivacyVarKeys: string[]): LambdaValueObjectObject;
|
|
10
11
|
private _lambdaPrivacyValueMap;
|
|
11
|
-
constructor(_lambdaNode: BaseAstNode
|
|
12
|
+
constructor(_lambdaNode: Nullable<BaseAstNode>, _interpreter: Nullable<Interpreter>, _lambdaPrivacyVarKeys: string[]);
|
|
13
|
+
dispose(): void;
|
|
12
14
|
isLambda(): boolean;
|
|
13
15
|
execute(...variants: FunctionVariantType[]): BaseValueObject | AsyncObject;
|
|
14
16
|
private _setLambdaNodeValue;
|
|
@@ -92,7 +92,6 @@ export declare class BooleanValueObject extends BaseValueObject {
|
|
|
92
92
|
convertToNumberObjectValue(): ErrorValueObject | NumberValueObject;
|
|
93
93
|
convertToBooleanObjectValue(): this;
|
|
94
94
|
}
|
|
95
|
-
export declare const NumberValueObjectCache: FormulaAstLRU<NumberValueObject>;
|
|
96
95
|
export declare class NumberValueObject extends BaseValueObject {
|
|
97
96
|
private _value;
|
|
98
97
|
static create(value: number, pattern?: string): NumberValueObject;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IDisposable, FBase, ICommandService, Injector } from '@univerjs/core';
|
|
2
|
+
import { FormulaExecutedStateType, IExecutionInProgressParams } from '@univerjs/engine-formula';
|
|
3
|
+
/**
|
|
4
|
+
* This interface class provides methods to modify the behavior of the operation formula.
|
|
5
|
+
*/
|
|
6
|
+
export declare class FFormula extends FBase {
|
|
7
|
+
private readonly _commandService;
|
|
8
|
+
protected readonly _injector: Injector;
|
|
9
|
+
constructor(_commandService: ICommandService, _injector: Injector);
|
|
10
|
+
/**
|
|
11
|
+
* Start the calculation of the formula.
|
|
12
|
+
*/
|
|
13
|
+
executeCalculation(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Stop the calculation of the formula.
|
|
16
|
+
*/
|
|
17
|
+
stopCalculation(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Listening calculation starts.
|
|
20
|
+
*/
|
|
21
|
+
calculationStart(callback: (forceCalculation: boolean) => void): IDisposable;
|
|
22
|
+
/**
|
|
23
|
+
* Listening calculation ends.
|
|
24
|
+
*/
|
|
25
|
+
calculationEnd(callback: (functionsExecutedState: FormulaExecutedStateType) => void): IDisposable;
|
|
26
|
+
onCalculationEnd(): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Listening calculation processing.
|
|
29
|
+
*/
|
|
30
|
+
calculationProcessing(callback: (stageInfo: IExecutionInProgressParams) => void): IDisposable;
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import './f-univer';
|
|
17
|
+
export { FFormula } from './f-formula';
|
|
@@ -3,6 +3,7 @@ import { IFunctionNames } from '../basics/function';
|
|
|
3
3
|
import { BaseReferenceObject, FunctionVariantType, NodeValueType } from '../engine/reference-object/base-reference-object';
|
|
4
4
|
import { ArrayBinarySearchType, ArrayOrderSearchType } from '../engine/utils/compare';
|
|
5
5
|
import { ArrayValueObject } from '../engine/value-object/array-value-object';
|
|
6
|
+
import { FormulaDataModel } from '../models/formula-data.model';
|
|
6
7
|
import { IDefinedNameMapItem } from '../services/defined-names.service';
|
|
7
8
|
import { BaseValueObject, ErrorValueObject } from '../engine/value-object/base-value-object';
|
|
8
9
|
import { PrimitiveValueType } from '../engine/value-object/primitive-object';
|
|
@@ -16,6 +17,7 @@ export declare class BaseFunction {
|
|
|
16
17
|
private _locale;
|
|
17
18
|
private _sheetOrder;
|
|
18
19
|
private _sheetNameMap;
|
|
20
|
+
protected _formulaDataModel: Nullable<FormulaDataModel>;
|
|
19
21
|
/**
|
|
20
22
|
* Whether the function needs to expand the parameters
|
|
21
23
|
*/
|
|
@@ -32,6 +34,10 @@ export declare class BaseFunction {
|
|
|
32
34
|
* Whether the function needs sheets info
|
|
33
35
|
*/
|
|
34
36
|
needsSheetsInfo: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the function needs function methods in FormulaDataModel
|
|
39
|
+
*/
|
|
40
|
+
needsFormulaDataModel: boolean;
|
|
35
41
|
/**
|
|
36
42
|
* Minimum number of parameters
|
|
37
43
|
*/
|
|
@@ -69,6 +75,7 @@ export declare class BaseFunction {
|
|
|
69
75
|
[sheetId: string]: string;
|
|
70
76
|
};
|
|
71
77
|
}): void;
|
|
78
|
+
setFormulaDataModel(_formulaDataModel: FormulaDataModel): void;
|
|
72
79
|
isAsync(): boolean;
|
|
73
80
|
isAddress(): boolean;
|
|
74
81
|
isCustom(): boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Hypgeomdist extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(sampleS: BaseValueObject, numberSample: BaseValueObject, populationS: BaseValueObject, numberPop: BaseValueObject): BaseValueObject;
|
|
7
|
+
private _handleSignleObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Lognormdist extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(x: BaseValueObject, mean: BaseValueObject, standardDev: BaseValueObject): BaseValueObject;
|
|
7
|
+
private _handleSignleObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Negbinomdist extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(numberF: BaseValueObject, numberS: BaseValueObject, probabilityS: BaseValueObject): BaseValueObject;
|
|
7
|
+
private _handleSignleObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Tdist extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(x: BaseValueObject, degFreedom: BaseValueObject, tails: BaseValueObject): BaseValueObject;
|
|
7
|
+
private _handleSignleObject;
|
|
8
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
export declare class Fv extends BaseFunction {
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
export declare class Ipmt extends BaseFunction {
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
export declare class Pmt extends BaseFunction {
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
export declare class Ppmt extends BaseFunction {
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
export declare class Pv extends BaseFunction {
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
2
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
3
|
+
import { BaseFunction } from '../../base-function';
|
|
4
|
+
export declare class Formulatext extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
7
|
+
needsReferenceObject: boolean;
|
|
8
|
+
needsFormulaDataModel: boolean;
|
|
9
|
+
calculate(reference: FunctionVariantType): BaseValueObject;
|
|
10
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ArrayValueObject } from '../../../engine/value-object/array-value-object';
|
|
1
2
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
3
|
import { BaseFunction } from '../../base-function';
|
|
3
|
-
import { ArrayValueObject } from '../../../engine/value-object/array-value-object';
|
|
4
4
|
export declare class Lookup extends BaseFunction {
|
|
5
5
|
minParams: number;
|
|
6
6
|
maxParams: number;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Frequency extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(dataArray: BaseValueObject, binsArray: BaseValueObject): BaseValueObject;
|
|
7
|
+
private _getValues;
|
|
8
|
+
private _getNewBinsArrayValues;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Gamma extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(number: BaseValueObject): BaseValueObject;
|
|
7
|
+
private _handleSingleObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class GammaDist extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(x: BaseValueObject, alpha: BaseValueObject, beta: BaseValueObject, cumulative: BaseValueObject): BaseValueObject;
|
|
7
|
+
private _handleSignleObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class GammaInv extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(probability: BaseValueObject, alpha: BaseValueObject, beta: BaseValueObject): BaseValueObject;
|
|
7
|
+
private _handleSignleObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Gammaln extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(x: BaseValueObject): BaseValueObject;
|
|
7
|
+
private _handleSingleObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Gauss extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(z: BaseValueObject): BaseValueObject;
|
|
7
|
+
private _handleSingleObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Geomean extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(...variants: BaseValueObject[]): BaseValueObject;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
|
+
export declare class Growth extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(knownYs: BaseValueObject, knownXs?: BaseValueObject, newXs?: BaseValueObject, constb?: BaseValueObject): BaseValueObject;
|
|
7
|
+
private _getResult;
|
|
8
|
+
private _getResultByMultipleVariables;
|
|
9
|
+
private _getResultBySimpleVariables;
|
|
10
|
+
private _getSlopeAndInterceptOfConstbIsTrue;
|
|
11
|
+
private _getSlopeAndInterceptOfConstbIsFalse;
|
|
12
|
+
private _getKnownXsValues;
|
|
13
|
+
private _getNewXsValues;
|
|
14
|
+
private _getValues;
|
|
15
|
+
private _getNumberValuesByRowsColumns;
|
|
16
|
+
}
|