quickstats
Quickly compute simple statistics
Loading...
Searching...
No Matches
rss.hpp File Reference

Compute residual sum of squares. More...

Go to the source code of this file.

Classes

struct  quickstats::RssResult< Output_ >
 Result of rss(). More...
 
struct  quickstats::RssWorkspace< Output_ >
 Re-usable workspace for rss(). More...
 
struct  quickstats::RssOptions< Output_ >
 Options for rss(). More...
 

Namespaces

namespace  quickstats
 Quickly compute simple statistics.
 

Functions

template<std::size_t accumulators_ = 4, typename Input_ , typename Output_ >
RssResult< Output_ > quickstats::rss (const std::size_t num_total, const std::size_t num_non_zero, const Input_ *const ptr, RssWorkspace< Output_ > &work, const RssOptions< Output_ > &options)
 
template<std::size_t accumulators_ = 4, typename Input_ , typename Output_ >
RssResult< Output_ > quickstats::rss (const std::size_t num_total, const Input_ *const ptr, RssWorkspace< Output_ > &work, const RssOptions< Output_ > &options)
 
template<typename Output_ = double, typename Input_ , typename Count_ >
void quickstats::update_rss (Output_ &mean, Output_ &rss, const Input_ value, const Count_ num_total)
 
template<typename Output_ = double, typename Count_ >
void quickstats::update_rss_with_zeros_unsafe (Output_ &mean, Output_ &rss, const Count_ num_zeros, const Count_ num_total)
 
template<typename Output_ = double, typename Count_ >
void quickstats::update_rss_with_zeros (Output_ &mean, Output_ &rss, const Count_ num_zeros, const Count_ num_total)
 
template<typename Count_ , typename Float_ >
Float_ quickstats::recenter_rss_unsafe (const Count_ num_total, const Float_ old_rss, const Float_ old_mean, const Float_ new_mean)
 
template<typename Count_ , typename Float_ >
Float_ quickstats::recenter_rss (const Count_ num_total, const Float_ old_rss, const Float_ old_mean, const Float_ new_mean)
 

Detailed Description

Compute residual sum of squares.