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

Functions

template<domain D :shared3p >
D float32 MAD (D int32 data)
 
template<domain D :shared3p >
D float64 MAD (D int64 data)
 
template<domain D :shared3p >
D float32 MAD (D float32 data)
 
template<domain D :shared3p >
D float64 MAD (D float64 data)
 

Detailed Description

Find the median absolute deviation of a sample.

Note
D - shared3p protection domain
Supported types - int32 / int64 / float32 / float64
Parameters
data- input sample
Returns
returns the median absolute deviation of the input multiplied by 1.4826
Leakage
None

Function Documentation

◆ MAD() [1/4]

template<domain D :shared3p >
D float32 MAD ( D float32  data)

◆ MAD() [2/4]

template<domain D :shared3p >
D float64 MAD ( D float64  data)

◆ MAD() [3/4]

template<domain D :shared3p >
D float32 MAD ( D int32  data)

◆ MAD() [4/4]

template<domain D :shared3p >
D float64 MAD ( D int64  data)