tatami_stats
Matrix statistics for tatami
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
medians.hpp File Reference

Compute row and column medians from a tatami::Matrix. More...

Go to the source code of this file.

Classes

struct  tatami_stats::medians::Options
 Median calculation options. More...
 

Namespaces

namespace  tatami_stats
 Functions to compute statistics from a tatami::Matrix.
 
namespace  tatami_stats::medians
 Functions for computing dimension-wise medians.
 

Functions

template<typename Output_ = double, typename Value_ , typename Index_ >
Output_ tatami_stats::medians::direct (Value_ *ptr, Index_ num, bool skip_nan)
 
template<typename Output_ = double, typename Value_ , typename Index_ >
Output_ tatami_stats::medians::direct (Value_ *value, Index_ num_nonzero, Index_ num_all, bool skip_nan)
 
template<typename Value_ , typename Index_ , typename Output_ >
void tatami_stats::medians::apply (bool row, const tatami::Matrix< Value_, Index_ > *p, Output_ *output, const medians::Options &mopt)
 
template<typename Output_ = double, typename Value_ , typename Index_ >
std::vector< Output_ > tatami_stats::medians::by_column (const tatami::Matrix< Value_, Index_ > *p, const Options &mopt)
 
template<typename Output_ = double, typename Value_ , typename Index_ >
std::vector< Output_ > tatami_stats::medians::by_column (const tatami::Matrix< Value_, Index_ > *p)
 
template<typename Output_ = double, typename Value_ , typename Index_ >
std::vector< Output_ > tatami_stats::medians::by_row (const tatami::Matrix< Value_, Index_ > *p, const Options &mopt)
 
template<typename Output_ = double, typename Value_ , typename Index_ >
std::vector< Output_ > tatami_stats::medians::by_row (const tatami::Matrix< Value_, Index_ > *p)
 

Detailed Description

Compute row and column medians from a tatami::Matrix.