@univerjs/engine-formula 0.2.15 → 0.3.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/index.js +1 -1
- package/lib/es/index.js +2231 -561
- package/lib/types/basics/engineering.d.ts +2 -0
- package/lib/types/basics/statistical.d.ts +32 -0
- package/lib/types/engine/reference-object/base-reference-object.d.ts +1 -1
- package/lib/types/engine/value-object/lambda-value-object.d.ts +2 -2
- package/lib/types/functions/compatibility/betadist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/compatibility/betadist/index.d.ts +8 -0
- package/lib/types/functions/compatibility/normsdist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/compatibility/normsdist/index.d.ts +8 -0
- package/lib/types/functions/logical/bycol/index.d.ts +3 -1
- package/lib/types/functions/logical/byrow/index.d.ts +3 -1
- package/lib/types/functions/logical/map/index.d.ts +3 -1
- package/lib/types/functions/logical/reduce/index.d.ts +3 -1
- package/lib/types/functions/logical/scan/index.d.ts +3 -1
- package/lib/types/functions/lookup/offset/index.d.ts +1 -1
- package/lib/types/functions/statistical/beta-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/beta-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/beta-inv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/beta-inv/index.d.ts +8 -0
- package/lib/types/functions/statistical/binom-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/binom-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/binom-dist-range/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/binom-dist-range/index.d.ts +8 -0
- package/lib/types/functions/statistical/binom-inv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/binom-inv/index.d.ts +8 -0
- package/lib/types/functions/statistical/chisq-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/chisq-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/chisq-dist-rt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/chisq-dist-rt/index.d.ts +8 -0
- package/lib/types/functions/statistical/chisq-inv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/chisq-inv/index.d.ts +8 -0
- package/lib/types/functions/statistical/chisq-inv-rt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/chisq-inv-rt/index.d.ts +8 -0
- package/lib/types/functions/statistical/chisq-test/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/chisq-test/index.d.ts +8 -0
- package/lib/types/functions/statistical/confidence-norm/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/confidence-norm/index.d.ts +7 -0
- package/lib/types/functions/statistical/confidence-t/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/confidence-t/index.d.ts +7 -0
- package/lib/types/functions/statistical/correl/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/correl/index.d.ts +8 -0
- package/lib/types/functions/statistical/covariance-p/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/covariance-p/index.d.ts +8 -0
- package/lib/types/functions/statistical/covariance-s/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/covariance-s/index.d.ts +8 -0
- package/lib/types/functions/statistical/devsq/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/devsq/index.d.ts +8 -0
- package/lib/types/functions/statistical/expon-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/expon-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/f-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/f-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/f-dist-rt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/f-dist-rt/index.d.ts +8 -0
- package/lib/types/functions/statistical/f-inv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/f-inv/index.d.ts +8 -0
- package/lib/types/functions/statistical/f-inv-rt/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/f-inv-rt/index.d.ts +8 -0
- package/lib/types/functions/statistical/f-test/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/f-test/index.d.ts +8 -0
- package/lib/types/functions/statistical/fisher/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/fisher/index.d.ts +8 -0
- package/lib/types/functions/statistical/fisherinv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/fisherinv/index.d.ts +8 -0
- package/lib/types/functions/statistical/forecast/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/forecast/index.d.ts +8 -0
- package/lib/types/functions/statistical/function-map.d.ts +1 -1
- package/lib/types/functions/statistical/intercept/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/intercept/index.d.ts +8 -0
- package/lib/types/functions/statistical/norm-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/norm-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/norm-inv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/norm-inv/index.d.ts +8 -0
- package/lib/types/functions/statistical/norm-s-dist/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/norm-s-dist/index.d.ts +8 -0
- package/lib/types/functions/statistical/norm-s-inv/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/statistical/norm-s-inv/index.d.ts +8 -0
- package/lib/types/index.d.ts +13 -13
- package/lib/umd/index.js +1 -1
- package/package.json +8 -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 ExponDist extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(x: BaseValueObject, lambda: 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 FDist extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(x: BaseValueObject, degFreedom1: BaseValueObject, degFreedom2: 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 FDistRt extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(x: BaseValueObject, degFreedom1: BaseValueObject, degFreedom2: 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 FInv extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(probability: BaseValueObject, degFreedom1: BaseValueObject, degFreedom2: 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 FInvRt extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(probability: BaseValueObject, degFreedom1: BaseValueObject, degFreedom2: 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 FTest extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(array1: BaseValueObject, array2: BaseValueObject): BaseValueObject;
|
|
7
|
+
private _getValues;
|
|
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 { BaseFunction } from '../../base-function';
|
|
2
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
3
|
+
export declare class Fisher 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 { BaseFunction } from '../../base-function';
|
|
2
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
3
|
+
export declare class Fisherinv extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(y: 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 Forecast extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(x: BaseValueObject, knownYs: BaseValueObject, knownXs: BaseValueObject): BaseValueObject;
|
|
7
|
+
private _handleSignleObject;
|
|
8
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FUNCTION_NAMES_STATISTICAL } from './function-names';
|
|
2
1
|
import { Averageif } from './averageif';
|
|
2
|
+
import { FUNCTION_NAMES_STATISTICAL } from './function-names';
|
|
3
3
|
import { StdevP } from './stdev-p';
|
|
4
4
|
export declare const functionStatistical: ((FUNCTION_NAMES_STATISTICAL | typeof Averageif)[] | (FUNCTION_NAMES_STATISTICAL | typeof StdevP)[])[];
|
|
@@ -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 Intercept extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(knownYs: BaseValueObject, knownXs: BaseValueObject): BaseValueObject;
|
|
7
|
+
private _getResult;
|
|
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 NormDist extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(x: BaseValueObject, mean: BaseValueObject, standardDev: 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 NormInv extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(probability: 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 NormSDist extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(z: 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 NormSInv extends BaseFunction {
|
|
4
|
+
minParams: number;
|
|
5
|
+
maxParams: number;
|
|
6
|
+
calculate(probability: BaseValueObject): BaseValueObject;
|
|
7
|
+
private _handleSignleObject;
|
|
8
|
+
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export type { IArrayFormulaRangeType, IArrayFormulaUnitCellType, IDirtyUnitFeatureMap, IDirtyUnitSheetNameMap, IFormulaData, IFormulaDataItem, IFormulaDatasetConfig, IRuntimeUnitDataType, ISheetData, IUnitData, IUnitSheetNameMap,
|
|
16
|
+
export type { IArrayFormulaRangeType, IArrayFormulaUnitCellType, IDirtyUnitFeatureMap, IDirtyUnitOtherFormulaMap, IDirtyUnitSheetDefinedNameMap, IDirtyUnitSheetNameMap, IFeatureDirtyRangeType, IFormulaData, IFormulaDataItem, IFormulaDatasetConfig, IRuntimeUnitDataType, ISheetData, IUnitData, IUnitSheetNameMap, } from './basics/common';
|
|
17
17
|
export { isInDirtyRange } from './basics/dirty';
|
|
18
|
-
export {
|
|
18
|
+
export { ERROR_TYPE_SET, ErrorType } from './basics/error-type';
|
|
19
19
|
export { FunctionType, type IFunctionInfo, type IFunctionParam } from './basics/function';
|
|
20
20
|
export { type IFunctionNames } from './basics/function';
|
|
21
21
|
export { includeFormulaLexerToken, isFormulaLexerToken, normalizeSheetName } from './basics/match-token';
|
|
22
22
|
export { convertUnitDataToRuntime } from './basics/runtime';
|
|
23
|
-
export {
|
|
23
|
+
export { compareToken, matchToken, operatorToken } from './basics/token';
|
|
24
24
|
export { LexerNode } from './engine/analysis/lexer-node';
|
|
25
25
|
export { LexerTreeBuilder } from './engine/analysis/lexer-tree-builder';
|
|
26
26
|
export { BaseReferenceObject, type FunctionVariantType } from './engine/reference-object/base-reference-object';
|
|
27
27
|
export { RangeReferenceObject } from './engine/reference-object/range-reference-object';
|
|
28
28
|
export { deserializeRangeForR1C1 } from './engine/utils/r1c1-reference';
|
|
29
|
-
export { deserializeRangeWithSheet, getAbsoluteRefTypeWithSingleString, getAbsoluteRefTypeWitString, type IAbsoluteRefTypeForRange, serializeRange, serializeRangeToRefString, serializeRangeWithSheet, serializeRangeWithSpreadsheet,
|
|
29
|
+
export { deserializeRangeWithSheet, getAbsoluteRefTypeWithSingleString, getAbsoluteRefTypeWitString, getRangeWithRefsString, type IAbsoluteRefTypeForRange, isReferenceStrings, isReferenceStringWithEffectiveColumn, serializeRange, serializeRangeToRefString, serializeRangeWithSheet, serializeRangeWithSpreadsheet, singleReferenceToGrid, } from './engine/utils/reference';
|
|
30
30
|
export { generateStringWithSequence, type ISequenceNode, sequenceNodeType } from './engine/utils/sequence';
|
|
31
31
|
export { ArrayValueObject, ValueObjectFactory } from './engine/value-object/array-value-object';
|
|
32
32
|
export { BaseValueObject, ErrorValueObject } from './engine/value-object/base-value-object';
|
|
@@ -34,7 +34,7 @@ export { BooleanValue } from './basics/common';
|
|
|
34
34
|
export type { PrimitiveValueType } from './engine/value-object/primitive-object';
|
|
35
35
|
export { NumberValueObject } from './engine/value-object/primitive-object';
|
|
36
36
|
export { BooleanValueObject } from './engine/value-object/primitive-object';
|
|
37
|
-
export {
|
|
37
|
+
export { NullValueObject, StringValueObject } from './engine/value-object/primitive-object';
|
|
38
38
|
export { functionArray } from './functions/array/function-map';
|
|
39
39
|
export { FUNCTION_NAMES_ARRAY } from './functions/array/function-names';
|
|
40
40
|
export { BaseFunction } from './functions/base-function';
|
|
@@ -80,9 +80,9 @@ export { FormulaExecuteStageType, type IExecutionInProgressParams } from './serv
|
|
|
80
80
|
export { FormulaExecutedStateType, type IAllRuntimeData } from './services/runtime.service';
|
|
81
81
|
export { isReferenceString } from './basics/regex';
|
|
82
82
|
export { matchRefDrawToken } from './basics/match-token';
|
|
83
|
-
export {
|
|
84
|
-
export {
|
|
85
|
-
export {
|
|
83
|
+
export { DefinedNamesService, type IDefinedNameMapItem, IDefinedNamesService, type IDefinedNamesServiceParam } from './services/defined-names.service';
|
|
84
|
+
export { FormulaRuntimeService, IFormulaRuntimeService } from './services/runtime.service';
|
|
85
|
+
export { FormulaCurrentConfigService, IFormulaCurrentConfigService, type IFormulaDirtyData } from './services/current-data.service';
|
|
86
86
|
export { IActiveDirtyManagerService } from './services/active-dirty-manager.service';
|
|
87
87
|
export { ActiveDirtyManagerService } from './services/active-dirty-manager.service';
|
|
88
88
|
export type { IRangeChange } from './models/formula-data.model';
|
|
@@ -111,9 +111,9 @@ export { DependencyManagerService } from './services/dependency-manager.service'
|
|
|
111
111
|
export { CalculateController } from './controller/calculate.controller';
|
|
112
112
|
export { RegisterFunctionMutation } from './commands/mutations/register-function.mutation';
|
|
113
113
|
export { type ISetArrayFormulaDataMutationParams, SetArrayFormulaDataMutation } from './commands/mutations/set-array-formula-data.mutation';
|
|
114
|
-
export {
|
|
114
|
+
export { type ISetDefinedNameMutationParam, type ISetDefinedNameMutationSearchParam, RemoveDefinedNameMutation, SetDefinedNameMutation, } from './commands/mutations/set-defined-name.mutation';
|
|
115
115
|
export { RemoveFeatureCalculationMutation, SetFeatureCalculationMutation } from './commands/mutations/set-feature-calculation.mutation';
|
|
116
|
-
export {
|
|
117
|
-
export {
|
|
118
|
-
export {
|
|
119
|
-
export {
|
|
116
|
+
export { type ISetFormulaCalculationNotificationMutation, type ISetFormulaCalculationResultMutation, type ISetFormulaCalculationStartMutation, SetFormulaCalculationNotificationMutation, SetFormulaCalculationResultMutation, SetFormulaCalculationStartMutation, SetFormulaCalculationStopMutation, } from './commands/mutations/set-formula-calculation.mutation';
|
|
117
|
+
export { type ISetFormulaDataMutationParams, SetFormulaDataMutation } from './commands/mutations/set-formula-data.mutation';
|
|
118
|
+
export { type IRemoveOtherFormulaMutationParams, type ISetOtherFormulaMutationParams, RemoveOtherFormulaMutation, SetOtherFormulaMutation, } from './commands/mutations/set-other-formula.mutation';
|
|
119
|
+
export { RemoveSuperTableMutation, SetSuperTableMutation, SetSuperTableOptionMutation, } from './commands/mutations/set-super-table.mutation';
|