Changeset 2415
 Timestamp:
 Jan 22, 2011, 7:01:31 AM (11 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/yat/normalizer/Centralizer.h
r2283 r2415 6 6 /* 7 7 Copyright (C) 2008 Jari Häkkinen, Peter Johansson 8 Copyright (C) 2009, 2010 Peter Johansson8 Copyright (C) 2009, 2010, 2011 Peter Johansson 9 9 10 10 This file is part of the yat library, http://dev.thep.lu.se/yat … … 43 43 \brief Centralize a range 44 44 45 The center is calculated and then that value is subtracted from 46 each element. By default the center is defined as the arithmetic 47 mean, but this can be changed by providing a suitable 48 UnaryFunction. 45 The class centralizes a range <tt> [first, last) </tt> in two 46 steps. First, the center value is calculaterd using the functor 47 \c UnaryFunction to calculate the center. Second, the center 48 value is subtracted from each element in range <tt> [first, last) 49 </tt>. \c UnaryFunction must be a functor that has an operator: 49 50 50 Type Requirements: 51  InputIterator must be an \input_iterator 52  ForwardIterator must be a mutable \forward_iterator 51 \code 52 return_type operator()(InputIterator, InputIterator) const 53 \endcode 54 55 where \c return_type must be convertible to \c value_type of \c 56 InputIterator. By default the center value is calculated as the 57 arithmetic mean via class statistics::Average, but this can be 58 changed using an alternative functor such as 59 statistics::Percentiler. 53 60 54 61 \since New in yat 0.5 … … 82 89 same. 83 90 91 Type Requirements: 92  InputIterator must be an \input_iterator 93  ForwardIterator must be a mutable \forward_iterator 94 84 95 \see std::transform 85 96 */
Note: See TracChangeset
for help on using the changeset viewer.