scran_qc
Simple quality control on single-cell data
Loading...
Searching...
No Matches
scran_qc::FindMedianMadWorkspace< Float_ > Class Template Reference

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

#include <find_median_mad.hpp>

Public Member Functions

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

Detailed Description

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

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 of the buffer.

Constructor & Destructor Documentation

◆ FindMedianMadWorkspace() [1/2]

template<typename Float_ >
template<typename Block_ >
scran_qc::FindMedianMadWorkspace< Float_ >::FindMedianMadWorkspace ( const std::size_t num,
const Block_ *const block )
inline
Template Parameters
Block_Integer type of 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]

template<typename Float_ >
scran_qc::FindMedianMadWorkspace< Float_ >::FindMedianMadWorkspace ( )
default

Default constructor.

Member Function Documentation

◆ set()

template<typename Float_ >
template<typename Block_ >
void scran_qc::FindMedianMadWorkspace< Float_ >::set ( const std::size_t num,
const Block_ *const block )
inline
Template Parameters
Block_Integer type of 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: