Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
7f5b4546
Commit
7f5b4546
authored
Jun 16, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add cFDIST formula
parent
f3eab951
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
13 deletions
+25
-13
cell/.unit-tests/FormulaTests.js
cell/.unit-tests/FormulaTests.js
+10
-0
cell/model/FormulaObjects/statisticalFunctions.js
cell/model/FormulaObjects/statisticalFunctions.js
+15
-13
No files found.
cell/.unit-tests/FormulaTests.js
View file @
7f5b4546
...
...
@@ -1009,6 +1009,16 @@ $( function () {
strictEqual
(
oParser
.
calculate
().
getValue
().
toFixed
(
7
)
-
0
,
0.01
,
"
F.DIST.RT(A2,A3,A4)
"
);
}
);
test
(
"
Test:
\"
FDIST
\"
"
,
function
()
{
ws
.
getRange2
(
"
A2
"
).
setValue
(
"
15.2069
"
);
ws
.
getRange2
(
"
A3
"
).
setValue
(
"
6
"
);
ws
.
getRange2
(
"
A4
"
).
setValue
(
"
4
"
);
oParser
=
new
parserFormula
(
"
FDIST(A2,A3,A4)
"
,
"
A1
"
,
ws
);
ok
(
oParser
.
parse
(),
"
FDIST(A2,A3,A4)
"
);
strictEqual
(
oParser
.
calculate
().
getValue
().
toFixed
(
7
)
-
0
,
0.01
,
"
FDIST(A2,A3,A4)
"
);
}
);
test
(
"
Test:
\"
FINV
\"
"
,
function
()
{
ws
.
getRange2
(
"
A2
"
).
setValue
(
"
0.01
"
);
ws
.
getRange2
(
"
A3
"
).
setValue
(
"
6
"
);
...
...
cell/model/FormulaObjects/statisticalFunctions.js
View file @
7f5b4546
...
...
@@ -63,7 +63,7 @@
cFormulaFunctionGroup
[
'
Statistical
'
].
push
(
cAVEDEV
,
cAVERAGE
,
cAVERAGEA
,
cAVERAGEIF
,
cAVERAGEIFS
,
cBETADIST
,
cBETA_DIST
,
cBETA_INV
,
cBINOMDIST
,
cCHIDIST
,
cCHIINV
,
cCHISQ_DIST
,
cCHISQ_DIST_RT
,
cCHISQ_INV
,
cCHISQ_INV_RT
,
cCHITEST
,
cCONFIDENCE
,
cCORREL
,
cCOUNT
,
cCOUNTA
,
cCOUNTBLANK
,
cCOUNTIF
,
cCOUNTIFS
,
cCOVAR
,
cCRITBINOM
,
cDEVSQ
,
cEXPON_DIST
,
cEXPONDIST
,
cF
DIST
,
cF_
DIST
,
cF_DIST_RT
,
cF_INV
,
cFINV
,
cF_INV_RT
,
cFISHER
,
cFISHERINV
,
cFORECAST
,
cEXPON_DIST
,
cEXPONDIST
,
cF
_DIST
,
cF
DIST
,
cF_DIST_RT
,
cF_INV
,
cFINV
,
cF_INV_RT
,
cFISHER
,
cFISHERINV
,
cFORECAST
,
cFREQUENCY
,
cFTEST
,
cGAMMA
,
cGAMMA_DIST
,
cGAMMADIST
,
cGAMMA_INV
,
cGAMMAINV
,
cGAMMALN
,
cGAMMALN_PRECISE
,
cGAUSS
,
cGEOMEAN
,
cGROWTH
,
cHARMEAN
,
cHYPGEOMDIST
,
cINTERCEPT
,
cKURT
,
cLARGE
,
cLINEST
,
cLOGEST
,
cLOGINV
,
cLOGNORM_DIST
,
cLOGNORM_INV
,
cLOGNORMDIST
,
cMAX
,
cMAXA
,
cMEDIAN
,
cMIN
,
cMINA
,
cMODE
,
cNEGBINOMDIST
,
cNORMDIST
,
cNORMINV
,
...
...
@@ -72,7 +72,7 @@
cT_DIST_RT
,
cT_INV
,
cT_INV_2T
,
cTINV
,
cTREND
,
cTRIMMEAN
,
cTTEST
,
cVAR
,
cVARA
,
cVARP
,
cVARPA
,
cWEIBULL
,
cZTEST
);
cFormulaFunctionGroup
[
'
NotRealised
'
]
=
cFormulaFunctionGroup
[
'
NotRealised
'
]
||
[];
cFormulaFunctionGroup
[
'
NotRealised
'
].
push
(
cCHITEST
,
cF
DIST
,
cF
TEST
,
cGROWTH
,
cLINEST
,
cLOGEST
,
cRANK
,
cTREND
,
cFormulaFunctionGroup
[
'
NotRealised
'
].
push
(
cCHITEST
,
cFTEST
,
cGROWTH
,
cLINEST
,
cLOGEST
,
cRANK
,
cTREND
,
cTRIMMEAN
,
cTTEST
,
cWEIBULL
,
cZTEST
);
function
isInteger
(
value
)
{
...
...
@@ -2572,17 +2572,6 @@
}
};
/**
* @constructor
* @extends {AscCommonExcel.cBaseFunction}
*/
function
cFDIST
()
{
cBaseFunction
.
call
(
this
,
"
FDIST
"
);
}
cFDIST
.
prototype
=
Object
.
create
(
cBaseFunction
.
prototype
);
cFDIST
.
prototype
.
constructor
=
cFDIST
;
/**
* @constructor
* @extends {AscCommonExcel.cBaseFunction}
...
...
@@ -2682,6 +2671,19 @@
return
this
.
value
=
this
.
_findArrayInNumberArguments
(
oArguments
,
calcFDist
);
};
/**
* @constructor
* @extends {cF_DIST_RT}
*/
function
cFDIST
()
{
cF_DIST_RT
.
call
(
this
);
this
.
name
=
"
FDIST
"
;
}
cFDIST
.
prototype
=
Object
.
create
(
cF_DIST_RT
.
prototype
);
cFDIST
.
prototype
.
constructor
=
cFDIST
;
cFDIST
.
prototype
.
isXLFN
=
true
;
/**
* @constructor
* @extends {AscCommonExcel.cBaseFunction}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment