@univerjs/engine-formula 0.10.7-nightly.202509130703 → 0.10.8-nightly.202509200616
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/index.js +2 -2
- package/lib/es/index.js +2045 -1967
- package/lib/index.js +2045 -1967
- package/lib/types/engine/utils/value-object.d.ts +17 -2
- package/lib/types/functions/compatibility/betadist/index.d.ts +1 -1
- package/lib/types/functions/compatibility/hypgeomdist/index.d.ts +1 -1
- package/lib/types/functions/compatibility/lognormdist/index.d.ts +1 -1
- package/lib/types/functions/compatibility/negbinomdist/index.d.ts +1 -1
- package/lib/types/functions/compatibility/normsdist/index.d.ts +2 -2
- package/lib/types/functions/compatibility/tdist/index.d.ts +1 -1
- package/lib/types/functions/logical/if/index.d.ts +1 -2
- package/lib/types/functions/lookup/function-map.d.ts +1 -3
- package/lib/types/functions/lookup/xlookup/index.d.ts +1 -2
- package/lib/types/functions/lookup/xmatch/index.d.ts +3 -3
- package/lib/types/functions/math/sumifs/index.d.ts +3 -1
- package/lib/types/functions/statistical/averageif/index.d.ts +2 -9
- package/lib/types/functions/statistical/averageifs/index.d.ts +4 -3
- package/lib/types/functions/statistical/beta-dist/index.d.ts +1 -1
- package/lib/types/functions/statistical/beta-inv/index.d.ts +1 -1
- package/lib/types/functions/statistical/binom-dist/index.d.ts +1 -1
- package/lib/types/functions/statistical/binom-dist-range/index.d.ts +1 -1
- package/lib/types/functions/statistical/binom-inv/index.d.ts +1 -1
- package/lib/types/functions/statistical/chisq-dist/index.d.ts +1 -1
- package/lib/types/functions/statistical/chisq-dist-rt/index.d.ts +1 -1
- package/lib/types/functions/statistical/chisq-inv/index.d.ts +1 -1
- package/lib/types/functions/statistical/chisq-inv-rt/index.d.ts +1 -1
- package/lib/types/functions/statistical/countif/index.d.ts +3 -1
- package/lib/types/functions/statistical/countifs/index.d.ts +4 -2
- package/lib/types/functions/statistical/expon-dist/index.d.ts +1 -1
- package/lib/types/functions/statistical/f-dist/index.d.ts +1 -1
- package/lib/types/functions/statistical/f-dist-rt/index.d.ts +1 -1
- package/lib/types/functions/statistical/f-inv/index.d.ts +1 -1
- package/lib/types/functions/statistical/f-inv-rt/index.d.ts +1 -1
- package/lib/types/functions/statistical/forecast/index.d.ts +1 -1
- package/lib/types/functions/statistical/function-map.d.ts +1 -2
- package/lib/types/functions/statistical/gamma-dist/index.d.ts +1 -1
- package/lib/types/functions/statistical/gamma-inv/index.d.ts +1 -1
- package/lib/types/functions/statistical/hypgeom-dist/index.d.ts +1 -1
- package/lib/types/functions/statistical/lognorm-dist/index.d.ts +1 -1
- package/lib/types/functions/statistical/lognorm-inv/index.d.ts +1 -1
- package/lib/types/functions/statistical/maxifs/index.d.ts +4 -3
- package/lib/types/functions/statistical/minifs/index.d.ts +4 -3
- package/lib/types/functions/statistical/negbinom-dist/index.d.ts +1 -1
- package/lib/types/functions/statistical/norm-dist/index.d.ts +1 -1
- package/lib/types/functions/statistical/norm-inv/index.d.ts +1 -1
- package/lib/types/functions/statistical/norm-s-dist/index.d.ts +1 -1
- package/lib/types/functions/statistical/norm-s-inv/index.d.ts +1 -1
- package/lib/types/functions/statistical/poisson-dist/index.d.ts +1 -1
- package/lib/types/functions/statistical/prob/index.d.ts +1 -1
- package/lib/types/functions/statistical/standardize/index.d.ts +1 -1
- package/lib/types/functions/statistical/t-dist/index.d.ts +1 -1
- package/lib/types/functions/statistical/t-dist-2t/index.d.ts +1 -1
- package/lib/types/functions/statistical/t-dist-rt/index.d.ts +1 -1
- package/lib/types/functions/statistical/t-inv/index.d.ts +1 -1
- package/lib/types/functions/statistical/t-inv-2t/index.d.ts +1 -1
- package/lib/types/functions/statistical/t-test/index.d.ts +1 -1
- package/lib/types/functions/statistical/weibull-dist/index.d.ts +1 -1
- package/lib/types/functions/statistical/z-test/index.d.ts +1 -1
- package/lib/umd/index.js +2 -2
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ICellData, Nullable } from '@univerjs/core';
|
|
2
2
|
import { BaseReferenceObject, FunctionVariantType } from '../reference-object/base-reference-object';
|
|
3
|
+
import { BaseValueObject, ErrorValueObject } from '../value-object/base-value-object';
|
|
3
4
|
import { ArrayValueObject } from '../value-object/array-value-object';
|
|
4
|
-
import { BaseValueObject } from '../value-object/base-value-object';
|
|
5
5
|
import { NumberValueObject } from '../value-object/primitive-object';
|
|
6
6
|
export declare function convertTonNumber(valueObject: BaseValueObject): NumberValueObject;
|
|
7
7
|
export declare function isSingleValueObject(valueObject: FunctionVariantType): boolean;
|
|
@@ -20,7 +20,22 @@ export declare function calculateMaxDimensions(variants: BaseValueObject[]): {
|
|
|
20
20
|
maxRowLength: number;
|
|
21
21
|
maxColumnLength: number;
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Parse the paired range and criteria in functions like COUNTIFS, SUMIFS, etc.
|
|
25
|
+
* @param variants - The range and criteria pairs
|
|
26
|
+
* @param targetRange - The target range for calculation (e.g., sumRange in SUMIFS)
|
|
27
|
+
* @returns An object containing parsed information
|
|
28
|
+
*/
|
|
29
|
+
export declare function parsePairedRangeAndCriteria(variants: FunctionVariantType[], targetRange?: FunctionVariantType): {
|
|
30
|
+
isError: boolean;
|
|
31
|
+
errorObject: Nullable<ErrorValueObject>;
|
|
32
|
+
rangeIsDifferentSize: boolean;
|
|
33
|
+
criteriaMaxRowLength: number;
|
|
34
|
+
criteriaMaxColumnLength: number;
|
|
35
|
+
targetRange: Nullable<BaseValueObject>;
|
|
36
|
+
variants: BaseValueObject[];
|
|
37
|
+
};
|
|
38
|
+
export declare function baseValueObjectToArrayValueObject(valueObject: BaseValueObject): ArrayValueObject;
|
|
24
39
|
export declare function getBooleanResults(variants: BaseValueObject[], maxRowLength: number, maxColumnLength: number, isNumberSensitive?: boolean): BaseValueObject[][];
|
|
25
40
|
/**
|
|
26
41
|
* Two valueObjects of the same type can be compared
|
|
@@ -4,5 +4,5 @@ export declare class Betadist extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(x: BaseValueObject, alpha: BaseValueObject, beta: BaseValueObject, A?: BaseValueObject, B?: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -4,5 +4,5 @@ export declare class Hypgeomdist extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(sampleS: BaseValueObject, numberSample: BaseValueObject, populationS: BaseValueObject, numberPop: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -4,5 +4,5 @@ export declare class Negbinomdist extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(numberF: BaseValueObject, numberS: BaseValueObject, probabilityS: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
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 Normsdist extends BaseFunction {
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(z: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -4,6 +4,5 @@ export declare class If extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(logicalTest: BaseValueObject, valueIfTrue: BaseValueObject, valueIfFalse?: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
8
|
-
private _calculateSingleCell;
|
|
7
|
+
private _handleSingleObject;
|
|
9
8
|
}
|
|
@@ -4,6 +4,4 @@ import { Hstack } from './hstack';
|
|
|
4
4
|
import { Indirect } from './indirect';
|
|
5
5
|
import { Lookup } from './lookup';
|
|
6
6
|
import { Match } from './match';
|
|
7
|
-
|
|
8
|
-
import { Xmatch } from './xmatch';
|
|
9
|
-
export declare const functionLookup: ((FUNCTION_NAMES_LOOKUP | typeof Choose)[] | (FUNCTION_NAMES_LOOKUP | typeof Hstack)[] | (FUNCTION_NAMES_LOOKUP | typeof Indirect)[] | (FUNCTION_NAMES_LOOKUP | typeof Lookup)[] | (FUNCTION_NAMES_LOOKUP | typeof Match)[] | (FUNCTION_NAMES_LOOKUP | typeof Xlookup)[] | (FUNCTION_NAMES_LOOKUP | typeof Xmatch)[])[];
|
|
7
|
+
export declare const functionLookup: ((FUNCTION_NAMES_LOOKUP | typeof Choose)[] | (FUNCTION_NAMES_LOOKUP | typeof Hstack)[] | (FUNCTION_NAMES_LOOKUP | typeof Indirect)[] | (FUNCTION_NAMES_LOOKUP | typeof Lookup)[] | (FUNCTION_NAMES_LOOKUP | typeof Match)[])[];
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ArrayValueObject } from '../../../engine/value-object/array-value-object';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
3
2
|
import { BaseFunction } from '../../base-function';
|
|
4
3
|
export declare class Xlookup extends BaseFunction {
|
|
5
4
|
minParams: number;
|
|
6
5
|
maxParams: number;
|
|
7
|
-
calculate(lookupValue: BaseValueObject, lookupArray:
|
|
6
|
+
calculate(lookupValue: BaseValueObject, lookupArray: BaseValueObject, returnArray: BaseValueObject, ifNotFound?: BaseValueObject, matchMode?: BaseValueObject, searchMode?: BaseValueObject): BaseValueObject;
|
|
8
7
|
private _getResult;
|
|
9
8
|
private _handleExpandObject;
|
|
10
9
|
private _handleSingleObject;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
|
-
import { ArrayValueObject } from '../../../engine/value-object/array-value-object';
|
|
3
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
4
3
|
export declare class Xmatch extends BaseFunction {
|
|
5
4
|
minParams: number;
|
|
6
5
|
maxParams: number;
|
|
7
|
-
calculate(lookupValue: BaseValueObject, lookupArray:
|
|
6
|
+
calculate(lookupValue: BaseValueObject, lookupArray: BaseValueObject, matchMode?: BaseValueObject, searchMode?: BaseValueObject): BaseValueObject;
|
|
8
7
|
private _handleSingleObject;
|
|
8
|
+
private _getResult;
|
|
9
9
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
1
2
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
3
|
import { ArrayValueObject } from '../../../engine/value-object/array-value-object';
|
|
3
4
|
import { BaseFunction } from '../../base-function';
|
|
4
5
|
export declare class Sumifs extends BaseFunction {
|
|
5
6
|
minParams: number;
|
|
6
7
|
maxParams: number;
|
|
7
|
-
|
|
8
|
+
needsReferenceObject: boolean;
|
|
9
|
+
calculate(sumRange: FunctionVariantType, ...variants: FunctionVariantType[]): BaseValueObject | ArrayValueObject;
|
|
8
10
|
private _aggregateResults;
|
|
9
11
|
}
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
2
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
3
|
import { BaseFunction } from '../../base-function';
|
|
3
4
|
export declare class Averageif extends BaseFunction {
|
|
4
5
|
minParams: number;
|
|
5
6
|
maxParams: number;
|
|
6
7
|
needsReferenceObject: boolean;
|
|
7
|
-
calculate(range: FunctionVariantType, criteria: FunctionVariantType, averageRange?: FunctionVariantType):
|
|
8
|
+
calculate(range: FunctionVariantType, criteria: FunctionVariantType, averageRange?: FunctionVariantType): BaseValueObject;
|
|
8
9
|
private _handleSingleObject;
|
|
9
|
-
/**
|
|
10
|
-
* Create reference object, starting from the first cell in the upper left corner, the height is rowCount and the width is columnCount
|
|
11
|
-
* @param averageRange
|
|
12
|
-
* @param rowCount
|
|
13
|
-
* @param columnCount
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
private _createRangeReferenceObject;
|
|
17
10
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BaseValueObject
|
|
1
|
+
import { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
2
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
3
3
|
import { BaseFunction } from '../../base-function';
|
|
4
4
|
export declare class Averageifs extends BaseFunction {
|
|
5
5
|
minParams: number;
|
|
6
6
|
maxParams: number;
|
|
7
|
-
|
|
7
|
+
needsReferenceObject: boolean;
|
|
8
|
+
calculate(averageRange: FunctionVariantType, ...variants: FunctionVariantType[]): BaseValueObject;
|
|
8
9
|
private _aggregateResults;
|
|
9
10
|
}
|
|
@@ -4,5 +4,5 @@ export declare class BetaDist extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(x: BaseValueObject, alpha: BaseValueObject, beta: BaseValueObject, cumulative: BaseValueObject, A?: BaseValueObject, B?: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -4,5 +4,5 @@ export declare class BetaInv extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(probability: BaseValueObject, alpha: BaseValueObject, beta: BaseValueObject, A?: BaseValueObject, B?: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -4,5 +4,5 @@ export declare class BinomDist extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(numberS: BaseValueObject, trials: BaseValueObject, probabilityS: BaseValueObject, cumulative: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -4,5 +4,5 @@ export declare class BinomDistRange extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(trials: BaseValueObject, probabilityS: BaseValueObject, numberS: BaseValueObject, numberS2?: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
1
2
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
3
|
import { BaseFunction } from '../../base-function';
|
|
3
4
|
export declare class Countif extends BaseFunction {
|
|
4
5
|
minParams: number;
|
|
5
6
|
maxParams: number;
|
|
6
|
-
|
|
7
|
+
needsReferenceObject: boolean;
|
|
8
|
+
calculate(range: FunctionVariantType, criteria: FunctionVariantType): BaseValueObject;
|
|
7
9
|
private _handleSingleObject;
|
|
8
10
|
private _countA;
|
|
9
11
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
2
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
1
3
|
import { ArrayValueObject } from '../../../engine/value-object/array-value-object';
|
|
2
|
-
import { BaseValueObject, ErrorValueObject } from '../../../engine/value-object/base-value-object';
|
|
3
4
|
import { NumberValueObject } from '../../../engine/value-object/primitive-object';
|
|
4
5
|
import { BaseFunction } from '../../base-function';
|
|
5
6
|
export declare class Countifs extends BaseFunction {
|
|
6
7
|
minParams: number;
|
|
7
8
|
maxParams: number;
|
|
8
|
-
|
|
9
|
+
needsReferenceObject: boolean;
|
|
10
|
+
calculate(...variants: FunctionVariantType[]): BaseValueObject;
|
|
9
11
|
private _aggregateResults;
|
|
10
12
|
}
|
|
11
13
|
export declare function countTrueValue(array: ArrayValueObject): NumberValueObject;
|
|
@@ -4,5 +4,5 @@ export declare class FDist extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(x: BaseValueObject, degFreedom1: BaseValueObject, degFreedom2: BaseValueObject, cumulative: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -4,5 +4,5 @@ export declare class FInv extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(probability: BaseValueObject, degFreedom1: BaseValueObject, degFreedom2: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -4,5 +4,5 @@ export declare class FInvRt extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(probability: BaseValueObject, degFreedom1: BaseValueObject, degFreedom2: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Averageif } from './averageif';
|
|
2
1
|
import { FUNCTION_NAMES_STATISTICAL } from './function-names';
|
|
3
2
|
import { StdevP } from './stdev-p';
|
|
4
|
-
export declare const functionStatistical: (
|
|
3
|
+
export declare const functionStatistical: (FUNCTION_NAMES_STATISTICAL | typeof StdevP)[][];
|
|
@@ -4,5 +4,5 @@ export declare class GammaDist extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(x: BaseValueObject, alpha: BaseValueObject, beta: BaseValueObject, cumulative: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -4,5 +4,5 @@ export declare class HypgeomDist extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(sampleS: BaseValueObject, numberSample: BaseValueObject, populationS: BaseValueObject, numberPop: BaseValueObject, cumulative: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -4,5 +4,5 @@ export declare class LognormDist extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(x: BaseValueObject, mean: BaseValueObject, standardDev: BaseValueObject, cumulative: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -4,5 +4,5 @@ export declare class LognormInv extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(probability: BaseValueObject, mean: BaseValueObject, standardDev: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
2
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
3
3
|
import { BaseFunction } from '../../base-function';
|
|
4
4
|
export declare class Maxifs extends BaseFunction {
|
|
5
5
|
minParams: number;
|
|
6
6
|
maxParams: number;
|
|
7
|
-
|
|
7
|
+
needsReferenceObject: boolean;
|
|
8
|
+
calculate(maxRange: FunctionVariantType, ...variants: FunctionVariantType[]): BaseValueObject;
|
|
8
9
|
private _aggregateResults;
|
|
9
10
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BaseValueObject
|
|
1
|
+
import { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
2
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
3
3
|
import { BaseFunction } from '../../base-function';
|
|
4
4
|
export declare class Minifs extends BaseFunction {
|
|
5
5
|
minParams: number;
|
|
6
6
|
maxParams: number;
|
|
7
|
-
|
|
7
|
+
needsReferenceObject: boolean;
|
|
8
|
+
calculate(minRange: FunctionVariantType, ...variants: FunctionVariantType[]): BaseValueObject;
|
|
8
9
|
private _aggregateResults;
|
|
9
10
|
}
|
|
@@ -4,5 +4,5 @@ export declare class NegbinomDist extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(numberF: BaseValueObject, numberS: BaseValueObject, probabilityS: BaseValueObject, cumulative: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -4,5 +4,5 @@ export declare class NormDist extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(x: BaseValueObject, mean: BaseValueObject, standardDev: BaseValueObject, cumulative: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -4,5 +4,5 @@ export declare class NormInv extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(probability: BaseValueObject, mean: BaseValueObject, standardDev: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -4,6 +4,6 @@ export declare class Prob extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(xRange: BaseValueObject, probRange: BaseValueObject, lowerLimit: BaseValueObject, upperLimit?: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
private _handleXRangeAndProbRange;
|
|
9
9
|
}
|
|
@@ -4,7 +4,7 @@ export declare class TTest extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(array1: BaseValueObject, array2: BaseValueObject, tails: BaseValueObject, type: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
private _getArrayValues;
|
|
9
9
|
private _handleArray1AndArray2;
|
|
10
10
|
private _getTDistParamByArrayValues;
|
|
@@ -4,5 +4,5 @@ export declare class WeibullDist extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(x: BaseValueObject, alpha: BaseValueObject, beta: BaseValueObject, cumulative: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
}
|
|
@@ -4,6 +4,6 @@ export declare class ZTest extends BaseFunction {
|
|
|
4
4
|
minParams: number;
|
|
5
5
|
maxParams: number;
|
|
6
6
|
calculate(array: BaseValueObject, x: BaseValueObject, sigma?: BaseValueObject): BaseValueObject;
|
|
7
|
-
private
|
|
7
|
+
private _handleSingleObject;
|
|
8
8
|
private _getArrayValues;
|
|
9
9
|
}
|