SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions
combinedDegreesOfFreedom

Functions

template<domain D>
D float32 combinedDegreesOfFreedom (D int32 data1, D bool ia1, D int32 data2, D bool ia2)
 
template<domain D>
D float64 combinedDegreesOfFreedom (D int64 data1, D bool ia1, D int64 data2, D bool ia2)
 
template<domain D>
D float32 combinedDegreesOfFreedom (D float32 data1, D bool ia1, D float32 data2, D bool ia2)
 
template<domain D>
D float64 combinedDegreesOfFreedom (D float64 data1, D bool ia1, D float64 data2, D bool ia2)
 

Detailed Description

Approximate the degrees of freedom of a linear combination of independent sample variances.

Note
Uses the Welch-Satterthwaite equation. It's useful for calculating the degrees of freedom when performing a t-test on samples with unequal variances (Welch's t-test).
D - any 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
Returns
returns the approximated number of degrees of freedom
Leakage
Leaks the number of true values in ia1 and ia2

Function Documentation

◆ combinedDegreesOfFreedom() [1/4]

template<domain D>
D float32 combinedDegreesOfFreedom ( D float32  data1,
D bool  ia1,
D float32  data2,
D bool  ia2 
)

◆ combinedDegreesOfFreedom() [2/4]

template<domain D>
D float64 combinedDegreesOfFreedom ( D float64  data1,
D bool  ia1,
D float64  data2,
D bool  ia2 
)

◆ combinedDegreesOfFreedom() [3/4]

template<domain D>
D float32 combinedDegreesOfFreedom ( D int32  data1,
D bool  ia1,
D int32  data2,
D bool  ia2 
)

◆ combinedDegreesOfFreedom() [4/4]

template<domain D>
D float64 combinedDegreesOfFreedom ( D int64  data1,
D bool  ia1,
D int64  data2,
D bool  ia2 
)