scran_qc
Simple quality control on single-cell data
Loading...
Searching...
No Matches
Public Member Functions | List of all members
scran_qc::FindMedianMadWorkspace< Float_, Index_ > Class Template Reference

Temporary data structures for find_median_mad_blocked(). More...

#include <find_median_mad.hpp>

Public Member Functions

template<typename Block_ >
 FindMedianMadWorkspace (Index_ num, const Block_ *block)
 
 FindMedianMadWorkspace ()=default
 
template<typename Block_ >
void set (Index_ num, const Block_ *block)
 

Detailed Description

template<typename Float_, typename Index_>
class scran_qc::FindMedianMadWorkspace< Float_, Index_ >

Temporary data structures for find_median_mad_blocked().

This can be re-used across multiple find_median_mad_blocked() calls to avoid reallocation.

Template Parameters
Float_Floating-point type for buffering.
Index_Integer type for array indices.

Constructor & Destructor Documentation

◆ FindMedianMadWorkspace() [1/2]

template<typename Block_ >
scran_qc::FindMedianMadWorkspace< Float_, Index_ >::FindMedianMadWorkspace ( Index_  num,
const Block_ block 
)
inline
Template Parameters
Block_Integer type for the block identifiers.
Parameters
numNumber of observations.
[in]blockPointer to an array of block identifiers. The array should be of length equal to num. Values should be integer IDs in \([0, N)\) where \(N\) is the number of blocks.

◆ FindMedianMadWorkspace() [2/2]

scran_qc::FindMedianMadWorkspace< Float_, Index_ >::FindMedianMadWorkspace ( )
default

Default constructor.

Member Function Documentation

◆ set()

template<typename Block_ >
void scran_qc::FindMedianMadWorkspace< Float_, Index_ >::set ( Index_  num,
const Block_ block 
)
inline
Template Parameters
Block_Integer type for the block identifiers.
Parameters
numNumber of observations.
[in]blockPointer to an array of block identifiers. The array should be of length equal to num. Values should be integer IDs in \([0, N)\) where \(N\) is the number of blocks.

The documentation for this class was generated from the following file: