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, D bool mask)
 
template<domain D :shared3p >
D float64 MAD (D int64 data, D bool mask)
 
template<domain D :shared3p >
D float32 MAD (D float32 data, D bool mask)
 
template<domain D :shared3p >
D float64 MAD (D float64 data, D bool mask)
 

Detailed Description

Find the median absolute deviation of a filtered sample.

Note
D - shared3p protection domain
Supported types - int32 / int64 / int32 / int64
Parameters
data- input sample
mask- mask vector indicating which elements of the input sample to include when computing MAD
Returns
returns the median absolute deviation of the filtered input multiplied by 1.4826
Leakage
Leaks the number of true values in the mask

Function Documentation

◆ MAD() [1/4]

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

◆ MAD() [2/4]

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

◆ MAD() [3/4]

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

◆ MAD() [4/4]

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