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)
 
template<domain D>
D float64 variance (D int64 data)
 
template<domain D>
D float32 variance (D float32 data)
 
template<domain D>
D float64 variance (D float64 data)
 

Detailed Description

Find the variance of a 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)
Returns
returns the variance of the input vector
Leakage
None

Function Documentation

◆ variance() [1/4]

template<domain D>
D float32 variance ( D float32  data)

◆ variance() [2/4]

template<domain D>
D float64 variance ( D float64  data)

◆ variance() [3/4]

template<domain D>
D float32 variance ( D int32  data)

◆ variance() [4/4]

template<domain D>
D float64 variance ( D int64  data)