scran_blocks
Blocking utilities for libscran
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
block_weights.hpp File Reference

Calculation of per-block weights. More...

Go to the source code of this file.

Classes

struct  scran_blocks::VariableWeightParameters
 Parameters for compute_variable_weight(). More...
 

Namespaces

namespace  scran_blocks
 Blocking utilities for libscran.
 

Enumerations

enum class  scran_blocks::WeightPolicy : char { NONE , VARIABLE , EQUAL }
 

Functions

double scran_blocks::compute_variable_weight (double s, const VariableWeightParameters &params)
 
template<typename Size_ , typename Weight_ >
void scran_blocks::compute_weights (size_t num_blocks, const Size_ *sizes, WeightPolicy policy, const VariableWeightParameters &variable, Weight_ *weights)
 
template<typename Weight_ = double, typename Size_ >
std::vector< Weight_scran_blocks::compute_weights (const std::vector< Size_ > &sizes, WeightPolicy policy, const VariableWeightParameters &variable)
 

Detailed Description

Calculation of per-block weights.