SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions
tTest(two sample vectors)

Functions

template<domain D :shared3p >
D float32 tTest (D int32 data1, D bool ia1, D int32 data2, D bool ia2, bool variancesEqual)
 
template<domain D :shared3p >
D float64 tTest (D int64 data1, D bool ia1, D int64 data2, D bool ia2, bool variancesEqual)
 
template<domain D :shared3p >
D float32 tTest (D float32 data1, D bool ia1, D float32 data2, D bool ia2, bool variancesEqual)
 
template<domain D :shared3p >
D float64 tTest (D float64 data1, D bool ia1, D float64 data2, D bool 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]

template<domain D :shared3p >
D float32 tTest ( D float32  data1,
D bool  ia1,
D float32  data2,
D bool  ia2,
bool  variancesEqual 
)

◆ tTest() [2/4]

template<domain D :shared3p >
D float64 tTest ( D float64  data1,
D bool  ia1,
D float64  data2,
D bool  ia2,
bool  variancesEqual 
)

◆ tTest() [3/4]

template<domain D :shared3p >
D float32 tTest ( D int32  data1,
D bool  ia1,
D int32  data2,
D bool  ia2,
bool  variancesEqual 
)

◆ tTest() [4/4]

template<domain D :shared3p >
D float64 tTest ( D int64  data1,
D bool  ia1,
D int64  data2,
D bool  ia2,
bool  variancesEqual 
)