Dundas Chart for Windows Forms
TDistribution Method
See Also  Example Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > Statistics Class : TDistribution Method


tValue
The T value for which the distribution probability is required.
T value
degreeOfFreedom
The degree of freedom.
Degree of Freedom
oneTail
If true the probability is one-tailed, if not it is two-tailed.
Returns the one-tailed distribution

Enterprise Edition Only Feature. This method returns the probability for the T distribution (student's distribution).


Returns the Percentage Points (probability) for the Student t-distribution where a numeric value (x) is a calculated value of t for which the Percentage Points are to be computed. 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.

Syntax

Visual Basic (Declaration)  
Public Function TDistribution( _
   ByVal tValue As Double, _
   ByVal degreeOfFreedom As Integer, _
   ByVal oneTail As Boolean _
) As Double
Visual Basic (Usage) Copy Code
Dim instance As Statistics
Dim tValue As Double
Dim degreeOfFreedom As Integer
Dim oneTail As Boolean
Dim value As Double
 
value = instance.TDistribution(tValue, degreeOfFreedom, oneTail)
C#  
public double TDistribution( 
   double tValue,
   int degreeOfFreedom,
   bool oneTail
)

Parameters

tValue
The T value for which the distribution probability is required.
T value
degreeOfFreedom
The degree of freedom.
Degree of Freedom
oneTail
If true the probability is one-tailed, if not it is two-tailed.
Returns the one-tailed distribution

Return Value

Returns T Distribution cumulative function

Example

The following sample calculates the T distribution probability.
Visual Basic Copy Code
Imports Dundas.Charting.WinControl
...

' Calculate T distribution probability for one-tailed distribution
Dim result As Double = Chart1.DataManipulator.Statistics.TDistribution(1.96,30,true)
C# Copy Code
using Dundas.Charting.WinControl;
...

// Calculate T distribution probability for one-tailed distribution
double result = Chart1.DataManipulator.Statistics.TDistribution(1.96,30,true);

Remarks

This method returns the probability for the T distribution, which is otherwise known as the student's distribution.

Use this function in place of a table of critical values for the t-distribution.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.