|
template<domain D> |
D float32 | combinedDegreesOfFreedom (D int32[[1]] data1, D bool[[1]] ia1, D int32[[1]] data2, D bool[[1]] ia2) |
|
template<domain D> |
D float64 | combinedDegreesOfFreedom (D int64[[1]] data1, D bool[[1]] ia1, D int64[[1]] data2, D bool[[1]] ia2) |
|
template<domain D> |
D float32 | combinedDegreesOfFreedom (D float32[[1]] data1, D bool[[1]] ia1, D float32[[1]] data2, D bool[[1]] ia2) |
|
template<domain D> |
D float64 | combinedDegreesOfFreedom (D float64[[1]] data1, D bool[[1]] ia1, D float64[[1]] data2, D bool[[1]] ia2) |
|
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
◆ combinedDegreesOfFreedom() [1/4]
D float32 combinedDegreesOfFreedom |
( |
D float32[[1]] |
data1, |
|
|
D bool[[1]] |
ia1, |
|
|
D float32[[1]] |
data2, |
|
|
D bool[[1]] |
ia2 |
|
) |
| |
◆ combinedDegreesOfFreedom() [2/4]
D float64 combinedDegreesOfFreedom |
( |
D float64[[1]] |
data1, |
|
|
D bool[[1]] |
ia1, |
|
|
D float64[[1]] |
data2, |
|
|
D bool[[1]] |
ia2 |
|
) |
| |
◆ combinedDegreesOfFreedom() [3/4]
D float32 combinedDegreesOfFreedom |
( |
D int32[[1]] |
data1, |
|
|
D bool[[1]] |
ia1, |
|
|
D int32[[1]] |
data2, |
|
|
D bool[[1]] |
ia2 |
|
) |
| |
◆ combinedDegreesOfFreedom() [4/4]
D float64 combinedDegreesOfFreedom |
( |
D int64[[1]] |
data1, |
|
|
D bool[[1]] |
ia1, |
|
|
D int64[[1]] |
data2, |
|
|
D bool[[1]] |
ia2 |
|
) |
| |