SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions
tTest(two sample vectors)

Functions

template<domain D :shared3p >
D float32 tTest (D int32[[1]] data1, D bool[[1]] ia1, D int32[[1]] data2, D bool[[1]] ia2, bool variancesEqual)
 
template<domain D :shared3p >
D float64 tTest (D int64[[1]] data1, D bool[[1]] ia1, D int64[[1]] data2, D bool[[1]] ia2, bool variancesEqual)
 
template<domain D :shared3p >
D float32 tTest (D float32[[1]] data1, D bool[[1]] ia1, D float32[[1]] data2, D bool[[1]] ia2, bool variancesEqual)
 
template<domain D :shared3p >
D float64 tTest (D float64[[1]] data1, D bool[[1]] ia1, D float64[[1]] data2, D bool[[1]] ia2, bool variancesEqual)
 

Detailed Description

Perform t-tests.

Note
D - shared3p protection domain
Supported types - int32 / int64 / float32 / float64
Parameters
data1- first sample
ia1- vector indicating which elements of the first sample are available
data2- second sample
ia2- vector indicating which elements of the second sample are available
variancesEqual- indicates if the variances of the two samples should be treated as equal
Returns
returns the test statistic
Leakage
Leaks the number of true values in ia1 and ia2

Function Documentation

◆ tTest() [1/4]

D float32 tTest ( D float32[[1]]  data1,
D bool[[1]]  ia1,
D float32[[1]]  data2,
D bool[[1]]  ia2,
bool  variancesEqual 
)

◆ tTest() [2/4]

D float64 tTest ( D float64[[1]]  data1,
D bool[[1]]  ia1,
D float64[[1]]  data2,
D bool[[1]]  ia2,
bool  variancesEqual 
)

◆ tTest() [3/4]

D float32 tTest ( D int32[[1]]  data1,
D bool[[1]]  ia1,
D int32[[1]]  data2,
D bool[[1]]  ia2,
bool  variancesEqual 
)

◆ tTest() [4/4]

D float64 tTest ( D int64[[1]]  data1,
D bool[[1]]  ia1,
D int64[[1]]  data2,
D bool[[1]]  ia2,
bool  variancesEqual 
)