tatami_stats
Matrix statistics for tatami
Loading...
Searching...
No Matches
group_median.hpp File Reference

Compute group-wise medians from a tatami::Matrix. More...

Go to the source code of this file.

Classes

struct  tatami_stats::GroupMedianOptions
 Options for group_median(). More...
 

Namespaces

namespace  tatami_stats
 Functions to compute statistics from a tatami::Matrix.
 

Functions

template<typename Value_ , typename Index_ , typename Group_ , typename Output_ >
void tatami_stats::group_median (bool row, const tatami::Matrix< Value_, Index_ > &mat, const Group_ *const group, const std::size_t num_groups, std::vector< Output_ * > &output, const GroupMedianOptions &opt)
 
template<typename Output_ = double, typename Value_ , typename Index_ , typename Group_ >
std::vector< std::vector< Output_ > > tatami_stats::group_median (bool row, const tatami::Matrix< Value_, Index_ > &mat, const Group_ *const group, const std::size_t num_groups, const GroupMedianOptions &opt)
 

Detailed Description

Compute group-wise medians from a tatami::Matrix.