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

Functions

template<domain D>
D float32 variance (D int32 data, D bool mask)
 
template<domain D>
D float64 variance (D int64 data, D bool mask)
 
template<domain D>
D float32 variance (D float32 data, D bool mask)
 
template<domain D>
D float64 variance (D float64 data, D bool mask)
 

Detailed Description

Find the variance of a filtered vector.

Note
D - any protection domain
Supported types - int32 / int64 / float32 / float64
Parameters
data- input vector (the function may overflow if the input is too big)
mask- mask indicating which elements of the input vector to include when computing the variance
Returns
returns the variance of the input vector
Leakage
None

Function Documentation

◆ variance() [1/4]

template<domain D>
D float32 variance ( D float32  data,
D bool  mask 
)

◆ variance() [2/4]

template<domain D>
D float64 variance ( D float64  data,
D bool  mask 
)

◆ variance() [3/4]

template<domain D>
D float32 variance ( D int32  data,
D bool  mask 
)

◆ variance() [4/4]

template<domain D>
D float64 variance ( D int64  data,
D bool  mask 
)