| 
    scran_blocks
    
   Blocking utilities for libscran 
   | 
 
Calculation of per-block weights. More...
#include <vector>#include <cstddef>#include <algorithm>#include "sanisizer/sanisizer.hpp"#include "utils.hpp"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 , SIZE , VARIABLE , EQUAL } | 
Functions | |
| double | scran_blocks::compute_variable_weight (const double s, const VariableWeightParameters ¶ms) | 
| template<typename Size_ , typename Weight_ > | |
| void | scran_blocks::compute_weights (const std::size_t num_blocks, const Size_ *const sizes, const WeightPolicy policy, const VariableWeightParameters &variable, Weight_ *const weights) | 
| template<typename Weight_ = double, typename Size_ > | |
| std::vector< Weight_ > | scran_blocks::compute_weights (const std::vector< Size_ > &sizes, const WeightPolicy policy, const VariableWeightParameters &variable) | 
Calculation of per-block weights.