scran
C++ library for basic single-cell RNA-seq analyses
|
Average parallel elements across vectors. More...
#include "macros.hpp"
#include <vector>
#include <limits>
#include <algorithm>
#include <cmath>
#include <numeric>
Go to the source code of this file.
Namespaces | |
namespace | scran |
Functions for single-cell RNA-seq analyses. | |
Functions | |
template<bool check_nan_ = true, typename Stat_ , typename Output_ > | |
void | scran::average_vectors (size_t n, std::vector< Stat_ * > in, Output_ *out) |
template<bool check_nan_ = true, typename Output_ = double, typename Stat_ > | |
std::vector< Output_ > | scran::average_vectors (size_t n, std::vector< Stat_ * > in) |
template<bool check_nan_ = true, typename Stat_ , typename Weight_ , typename Output_ > | |
void | scran::average_vectors_weighted (size_t n, std::vector< Stat_ * > in, const Weight_ *w, Output_ *out) |
template<bool check_nan_ = true, typename Output_ = double, typename Stat_ , typename Weight_ > | |
std::vector< Output_ > | scran::average_vectors_weighted (size_t n, std::vector< Stat_ * > in, const Weight_ *w) |
Average parallel elements across vectors.