Changeset 3136 for trunk/yat/statistics/utility.h
 Timestamp:
 Nov 28, 2013, 1:18:22 AM (9 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/yat/statistics/utility.h
r3135 r3136 65 65 \brief Benjamini Hochberg multiple test correction 66 66 67 Given a sorted range of pvalues such that 68 \f$ p_1 \le p_2 \le ... \le p_N \f$ a BenjamniniHochberg corrected 69 pvalue, \c q, is calculated recursively as 70 \f$ q_i = \f$ min \f$(p_i \frac{N}{i}, q_{i+1})\f$ with the anchor 67 Given a sorted range of pvalues such that 68 \f$ p_1 \le p_2 \le ... \le p_N \f$ a BenjamniniHochberg corrected 69 pvalue, \c q, is calculated recursively as 70 \f$ q_i = \f$ min \f$(p_i \frac{N}{i}, q_{i+1})\f$ with the anchor 71 71 constraint that \f$ q_m = p_m \f$. 72 72 73 Requirements: \c BidirectionalIterator1 should be a 73 Requirements: \c BidirectionalIterator1 should be a 74 74 \bidirectional_iterator and \c BidirectionalIterator2 should be a 75 75 mutable \bidirectional_iterator … … 81 81 BidirectionalIterator1 last, 82 82 BidirectionalIterator2 result); 83 83 84 84 85 85 /// … … 99 99 100 100 /** 101 The entropy is calculated as \f$ \sum_i p_i \log p_i \f$ where101 The entropy is calculated as \f$  \sum_i p_i \log p_i \f$ where 102 102 \f$p_i = \frac{n_i}{\sum_j n_j} \f$ 103 103 104 Requirements: \c InputIterator should be an \input_iterator 105 Requirements: \c InputIterator::value_type must be convertible to \c double 104 Requirements: 105  \c InputIterator should be an \input_iterator 106  \c InputIterator::value_type must be convertible to \c double 107 108 \since New in yat 0.12 106 109 */ 107 110 template<typename InputIterator> … … 137 140 /// 138 141 /// @brief Median absolute deviation from median 139 /// 142 /// 140 143 /// Function is nonmutable function 141 144 /// … … 147 150 /// 148 151 template <class RandomAccessIterator> 149 double mad(RandomAccessIterator first, RandomAccessIterator last, 152 double mad(RandomAccessIterator first, RandomAccessIterator last, 150 153 bool sorted=false); 151 154 … … 166 169 /// @return median of range 167 170 /// 168 template <class RandomAccessIterator> 169 double median(RandomAccessIterator first, RandomAccessIterator last, 170 bool sorted=false); 171 template <class RandomAccessIterator> 172 double median(RandomAccessIterator first, RandomAccessIterator last, 173 bool sorted=false); 171 174 172 175 … … 184 187 Function is a nonmutable function, i.e., \a first and \a last 185 188 can be const_iterators. 186 189 187 190 Requirements: RandomAccessIterator is an iterator over a range of 188 191 doubles (or any type being convertable to double). 189 192 190 193 @return \a p'th percentile of range 191 194 … … 197 200 */ 198 201 template <class RandomAccessIterator> 199 double percentile(RandomAccessIterator first, RandomAccessIterator last, 202 double percentile(RandomAccessIterator first, RandomAccessIterator last, 200 203 double p, bool sorted=false) YAT_DEPRECATE; 201 204 202 205 /** 203 206 \see Percentiler 204 207 205 208 \since new in yat 0.5 206 209 */ 207 210 template <class RandomAccessIterator> 208 double percentile2(RandomAccessIterator first, RandomAccessIterator last, 211 double percentile2(RandomAccessIterator first, RandomAccessIterator last, 209 212 double p, bool sorted=false) 210 213 {
Note: See TracChangeset
for help on using the changeset viewer.