SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions

Functions

template<domain D :shared3p >
D float32 MAD (D int32[[1]] data)
 
template<domain D :shared3p >
D float64 MAD (D int64[[1]] data)
 
template<domain D :shared3p >
D float32 MAD (D float32[[1]] data)
 
template<domain D :shared3p >
D float64 MAD (D float64[[1]] 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]

D float32 MAD ( D float32[[1]]  data)

◆ MAD() [2/4]

D float64 MAD ( D float64[[1]]  data)

◆ MAD() [3/4]

D float32 MAD ( D int32[[1]]  data)

◆ MAD() [4/4]

D float64 MAD ( D int64[[1]]  data)