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

D float32 MAD ( D float32[[1]]  data,
D bool[[1]]  mask 
)

◆ MAD() [2/4]

D float64 MAD ( D float64[[1]]  data,
D bool[[1]]  mask 
)

◆ MAD() [3/4]

D float32 MAD ( D int32[[1]]  data,
D bool[[1]]  mask 
)

◆ MAD() [4/4]

D float64 MAD ( D int64[[1]]  data,
D bool[[1]]  mask 
)