# Changeset 3136 for trunk/yat/statistics/utility.h

Ignore:
Timestamp:
Nov 28, 2013, 1:18:22 AM (9 years ago)
Message:

fix docs and remove WS

File:
1 edited

### Legend:

Unmodified
 r3135 \brief Benjamini Hochberg multiple test correction Given a sorted range of p-values such that \f$p_1 \le p_2 \le ... \le p_N \f$ a Benjamnini-Hochberg corrected p-value, \c q, is calculated recursively as \f$q_i = \f$ min \f$(p_i \frac{N}{i}, q_{i+1})\f$ with the anchor Given a sorted range of p-values such that \f$p_1 \le p_2 \le ... \le p_N \f$ a Benjamnini-Hochberg corrected p-value, \c q, is calculated recursively as \f$q_i = \f$ min \f$(p_i \frac{N}{i}, q_{i+1})\f$ with the anchor constraint that \f$q_m = p_m \f$. Requirements: \c BidirectionalIterator1 should be a Requirements: \c BidirectionalIterator1 should be a \bidirectional_iterator and \c BidirectionalIterator2 should be a mutable \bidirectional_iterator BidirectionalIterator1 last, BidirectionalIterator2 result); /// /** The entropy is calculated as \f$\sum_i p_i \log p_i \f$ where The entropy is calculated as \f$- \sum_i p_i \log p_i \f$ where \f$p_i = \frac{n_i}{\sum_j n_j} \f$ Requirements: \c InputIterator should be an \input_iterator Requirements: \c InputIterator::value_type must be convertible to \c double Requirements: - \c InputIterator should be an \input_iterator - \c InputIterator::value_type must be convertible to \c double \since New in yat 0.12 */ template /// /// @brief Median absolute deviation from median /// /// /// Function is non-mutable function /// /// template double mad(RandomAccessIterator first, RandomAccessIterator last, double mad(RandomAccessIterator first, RandomAccessIterator last, bool sorted=false); /// @return median of range /// template double median(RandomAccessIterator first, RandomAccessIterator last, bool sorted=false); template double median(RandomAccessIterator first, RandomAccessIterator last, bool sorted=false); Function is a non-mutable function, i.e., \a first and \a last can be const_iterators. Requirements: RandomAccessIterator is an iterator over a range of doubles (or any type being convertable to double). @return \a p'th percentile of range */ template double percentile(RandomAccessIterator first, RandomAccessIterator last, double percentile(RandomAccessIterator first, RandomAccessIterator last, double p, bool sorted=false) YAT_DEPRECATE; /** \see Percentiler \since new in yat 0.5 */ template double percentile2(RandomAccessIterator first, RandomAccessIterator last, double percentile2(RandomAccessIterator first, RandomAccessIterator last, double p, bool sorted=false) {