Top Description Fields Constructors Methods
org.apache.poi.ss.formula.functions

public final Class TDistLt

extends Fixed3ArgFunction
implements FreeRefFunction
Class Inheritance
All Implemented Interfaces
org.apache.poi.ss.formula.functions.FreeRefFunction
Imports
org.apache.commons.math3.distribution.TDistribution, org.apache.poi.ss.formula.OperationEvaluationContext, org.apache.poi.ss.formula.eval.*

Implementation for Excel T.DIST() function.

Syntax:
T.DIST (X,Deg_freedom,Cumulative)

Returns the Student's left-tailed t-distribution. The t-distribution is used in the hypothesis testing of small sample data sets. Use this function in place of a table of critical values for the t-distribution.

https://support.microsoft.com/en-us/office/t-dist-rt-function-20a30020-86f9-4b35-af1f-7ef6ae683eda

Field Summary

Modifier and TypeField and Description
public static final TDistLt

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ValueEval
public ValueEval
evaluate(ValueEval[]
the pre-evaluated arguments for this function. args is never null, nor are any of its elements.
args
,
OperationEvaluationContext
primarily used to identify the source cell containing the formula being evaluated. may also be used to dynamically create reference evals.
ec
)

Implements org.apache.poi.ss.formula.functions.FreeRefFunction.evaluate.

private static Boolean
evaluateBoolean(ValueEval arg, int srcRowIndex, int srcColumnIndex)

private static Double
evaluateValue(ValueEval arg, int srcRowIndex, int srcColumnIndex)

private static double
tdistCumulative(double x, int degreesOfFreedom)

private static double
tdistDensity(double x, int degreesOfFreedom)

Inherited from org.apache.poi.ss.formula.functions.Fixed3ArgFunction:
evaluate

Field Detail

instanceback to summary
public static final TDistLt instance

Constructor Detail

TDistLtback to summary
public TDistLt()

Method Detail

evaluateback to summary
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg1, ValueEval arg2, ValueEval arg3)

Implements org.apache.poi.ss.formula.functions.Function3Arg.evaluate.

Doc from org.apache.poi.ss.formula.functions.Function3Arg.evaluate.

see Function#evaluate(ValueEval[], int, int)

Annotations
@Override
evaluateback to summary
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec)

Implements org.apache.poi.ss.formula.functions.FreeRefFunction.evaluate.

Parameters
args:ValueEval[]

Doc from org.apache.poi.ss.formula.functions.FreeRefFunction.evaluate.

the pre-evaluated arguments for this function. args is never null, nor are any of its elements.

ec:OperationEvaluationContext

Doc from org.apache.poi.ss.formula.functions.FreeRefFunction.evaluate.

primarily used to identify the source cell containing the formula being evaluated. may also be used to dynamically create reference evals.

Returns:ValueEval

Doc from org.apache.poi.ss.formula.functions.FreeRefFunction.evaluate.

never null. Possibly an instance of ErrorEval in the case of a specified Excel error (Exceptions are never thrown to represent Excel errors).

Annotations
@Override
evaluateBooleanback to summary
private static Boolean evaluateBoolean(ValueEval arg, int srcRowIndex, int srcColumnIndex) throws EvaluationException
evaluateValueback to summary
private static Double evaluateValue(ValueEval arg, int srcRowIndex, int srcColumnIndex) throws EvaluationException
tdistCumulativeback to summary
private static double tdistCumulative(double x, int degreesOfFreedom)
tdistDensityback to summary
private static double tdistDensity(double x, int degreesOfFreedom)