Constructs a TwoSamplePairedTTest instance using the given paired vectors of sample data.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public TwoSamplePairedTTest(
	DoubleVector data1,
	DoubleVector data2
)
Visual Basic (Declaration)
Public Sub New ( _
	data1 As DoubleVector, _
	data2 As DoubleVector _
)
Visual C++
public:
TwoSamplePairedTTest(
	DoubleVector^ data1, 
	DoubleVector^ data2
)

Parameters

data1
Type: CenterSpace.NMath.Core..::.DoubleVector
A vector of observed values.
data2
Type: CenterSpace.NMath.Core..::.DoubleVector
A vector of observed values.

Remarks

The mean of the differences between paired observations, the standard deviation of the differences, and the sample size are computed from the given vectors. Paired observations where either value is missing are ignored. The alpha level is set to the current value specified by the static DefaultAlpha property; the form of the hypothesis test is set to the current DefaultType.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentException Thrown if the given data contains zero valid pairs.

See Also