mirror of https://github.com/apache/poi.git
fix names of t.dist functions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894468 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e216997950
commit
5d5778d407
|
@ -173,8 +173,8 @@ public final class AnalysisToolPak implements UDFFinder {
|
||||||
r(m, "TBILLEQ", null);
|
r(m, "TBILLEQ", null);
|
||||||
r(m, "TBILLPRICE", null);
|
r(m, "TBILLPRICE", null);
|
||||||
r(m, "TBILLYIELD", null);
|
r(m, "TBILLYIELD", null);
|
||||||
r(m, "TDIST.2T", TDist2t.instance);
|
r(m, "T.DIST.2T", TDist2t.instance);
|
||||||
r(m, "TDIST.RT", TDistRt.instance);
|
r(m, "T.DIST.RT", TDistRt.instance);
|
||||||
r(m, "TEXTJOIN", TextJoinFunction.instance);
|
r(m, "TEXTJOIN", TextJoinFunction.instance);
|
||||||
r(m, "WEEKNUM", WeekNum.instance);
|
r(m, "WEEKNUM", WeekNum.instance);
|
||||||
r(m, "WORKDAY", WorkdayFunction.instance);
|
r(m, "WORKDAY", WorkdayFunction.instance);
|
||||||
|
|
|
@ -21,9 +21,9 @@ import org.apache.poi.ss.formula.OperationEvaluationContext;
|
||||||
import org.apache.poi.ss.formula.eval.*;
|
import org.apache.poi.ss.formula.eval.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation for Excel TDIST.2T() function.
|
* Implementation for Excel T.DIST.2T() function.
|
||||||
* <p>
|
* <p>
|
||||||
* <b>Syntax</b>:<br> <b>TDIST.2T </b>(<b>X</b>,<b>Deg_freedom</b>)<br>
|
* <b>Syntax</b>:<br> <b>T.DIST.2T </b>(<b>X</b>,<b>Deg_freedom</b>)<br>
|
||||||
* <p>
|
* <p>
|
||||||
* Returns the two-tailed Student's t-distribution.
|
* Returns the two-tailed Student's t-distribution.
|
||||||
*
|
*
|
||||||
|
@ -36,8 +36,8 @@ import org.apache.poi.ss.formula.eval.*;
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>If any argument is non-numeric, TDIST.2T returns the #VALUE! error value.</li>
|
* <li>If any argument is non-numeric, T.DIST.2T returns the #VALUE! error value.</li>
|
||||||
* <li>If Deg_freedom < 1, TDIST.2T returns the #NUM! error value.</li>
|
* <li>If Deg_freedom < 1, T.DIST.2T returns the #NUM! error value.</li>
|
||||||
* <li>If x < 0, then T.DIST.2T returns the #NUM! error value.</li>
|
* <li>If x < 0, then T.DIST.2T returns the #NUM! error value.</li>
|
||||||
* <li>The Deg_freedom argument is truncated to an integer.
|
* <li>The Deg_freedom argument is truncated to an integer.
|
||||||
* </ul>
|
* </ul>
|
||||||
|
|
|
@ -22,9 +22,9 @@ import org.apache.poi.ss.formula.OperationEvaluationContext;
|
||||||
import org.apache.poi.ss.formula.eval.*;
|
import org.apache.poi.ss.formula.eval.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation for Excel TDIST.RT() function.
|
* Implementation for Excel T.DIST.RT() function.
|
||||||
* <p>
|
* <p>
|
||||||
* <b>Syntax</b>:<br> <b>TDIST.RT </b>(<b>X</b>,<b>Deg_freedom</b>)<br>
|
* <b>Syntax</b>:<br> <b>T.DIST.RT </b>(<b>X</b>,<b>Deg_freedom</b>)<br>
|
||||||
* <p>
|
* <p>
|
||||||
* Returns the right-tailed Student's t-distribution.
|
* Returns the right-tailed Student's t-distribution.
|
||||||
*
|
*
|
||||||
|
@ -37,8 +37,8 @@ import org.apache.poi.ss.formula.eval.*;
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>If any argument is non-numeric, TDIST.RT returns the #VALUE! error value.</li>
|
* <li>If any argument is non-numeric, T.DIST.RT returns the #VALUE! error value.</li>
|
||||||
* <li>If Deg_freedom < 1, TDIST.RT returns the #NUM! error value.</li>
|
* <li>If Deg_freedom < 1, T.DIST.RT returns the #NUM! error value.</li>
|
||||||
* <li>The Deg_freedom argument is truncated to an integer.
|
* <li>The Deg_freedom argument is truncated to an integer.
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
|
|
|
@ -71,7 +71,7 @@ final class TestTDist2t {
|
||||||
addRow(sheet, 2, 60, "Degrees of freedom");
|
addRow(sheet, 2, 60, "Degrees of freedom");
|
||||||
HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
|
HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
|
||||||
HSSFCell cell = wb.getSheetAt(0).getRow(0).createCell(100);
|
HSSFCell cell = wb.getSheetAt(0).getRow(0).createCell(100);
|
||||||
assertDouble(fe, cell, "TDIST.2T(A2,A3)", 0.054644930, 0.01);
|
assertDouble(fe, cell, "T.DIST.2T(A2,A3)", 0.054644930, 0.01);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,8 +71,8 @@ final class TestTDistRt {
|
||||||
addRow(sheet, 2, 60, "Degrees of freedom");
|
addRow(sheet, 2, 60, "Degrees of freedom");
|
||||||
HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
|
HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
|
||||||
HSSFCell cell = wb.getSheetAt(0).getRow(0).createCell(100);
|
HSSFCell cell = wb.getSheetAt(0).getRow(0).createCell(100);
|
||||||
assertDouble(fe, cell, "TDIST.RT(A2,A3)", 0.027322465, 0.01);
|
assertDouble(fe, cell, "T.DIST.RT(A2,A3)", 0.027322465, 0.01);
|
||||||
assertDouble(fe, cell, "TDIST.RT(-A2,A3)", 0.027322465, 0.01);
|
assertDouble(fe, cell, "T.DIST.RT(-A2,A3)", 0.027322465, 0.01);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue