Changeset 1717
- Timestamp:
- Jan 13, 2009, 11:32:00 PM (14 years ago)
- Location:
- trunk/yat/normalizer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/normalizer/Centralizer.h
r1576 r1717 5 5 6 6 /* 7 Copyright (C) 2008 Peter Johansson7 Copyright (C) 2008, 2009 Peter Johansson 8 8 9 9 This file is part of the yat library, http://dev.thep.lu.se/yat … … 52 52 \brief default constructor 53 53 54 Creates a UnaryFunction using default constructor. 54 Internal UnaryFunction is created using its default 55 constructor. 55 56 */ 56 57 Centralizer(void){} … … 70 71 It is possible to centralize a range "in place"; it is 71 72 permissible for the iterators \a first and \a result to be the 72 same. \see std::transform 73 same. 74 75 \see std::transform 73 76 74 77 \return result + (last-first) -
trunk/yat/normalizer/Gauss.h
r1575 r1717 5 5 6 6 /* 7 Copyright (C) 2008 Peter Johansson7 Copyright (C) 2008, 2009 Peter Johansson 8 8 9 9 This file is part of the yat library, http://dev.thep.lu.se/yat … … 35 35 \brief Gaussian Normalizer 36 36 37 After normalization the range will follow a standard Gaussian 38 distribution (mean zero and unity variance). 39 40 The range is first rank normalized using Spearman, after which 41 each element is between 0 and unity. Second each element is 42 replaced by inverse cumulative standard Gaussian distribution. 43 37 44 \since New in yat 0.5 38 45 */ … … 44 51 permissible for the iterators \a first and \a result to be the 45 52 same. 46 47 The range is first rank normalized using Spearman, after which48 each element is between 0 and unity. Second each element is49 replaced by inverse cumulative standard Gaussian distribution.50 51 After normalization the range will follow a standard Gaussian52 distribution (mean zero and unity variance).53 53 54 54 \see gsl_cdf_ugaussian_Pinv -
trunk/yat/normalizer/Spearman.h
r1575 r1717 5 5 6 6 /* 7 Copyright (C) 2008 Peter Johansson7 Copyright (C) 2008, 2009 Peter Johansson 8 8 9 9 This file is part of the yat library, http://dev.thep.lu.se/yat … … 39 39 \brief Replace elements with normalized rank 40 40 41 Each element x is replaced by \f$ \frac{\sum I(x_i-x) w_i}{\sum 42 w_i} \f$ where \f$ I(x) = 1 \f$ for \f$ x>0 \f$, \f$I(x) = 0.5 43 \f$ for \f$ x=0 \f$, and \f$ I(x) = 0 \f$ for \f$ x<0 \f$. 44 41 45 \since New in yat 0.5 42 46 */ … … 53 57 permissible for the iterators \a first and \a result to be the 54 58 same. 55 56 Each element x is replaced by \f$ \frac{\sum I(x_i-x)57 w_i}{\sum w_i} \f$ where I(x) = 1 for x>0, I(x) = 0.5 for x=0,58 and I(x) = 0 for x<0.59 59 60 60 \return result + (last-first) -
trunk/yat/normalizer/Zscore.h
r1575 r1717 5 5 6 6 /* 7 Copyright (C) 2008 Peter Johansson7 Copyright (C) 2008, 2009 Peter Johansson 8 8 9 9 This file is part of the yat library, http://dev.thep.lu.se/yat … … 35 35 \brief Zero mean and unity variance 36 36 37 Create a range that has zero mean and unity variance 37 Shift and scale the values in a range as: \f$ y_i = 38 \frac{x_i-m}{s} \f$ where \a m is the mean and \a s is the 39 standard deviation. After normalization, the range will have zero 40 mean and unity variance. 38 41 39 42 \since New in yat 0.5 … … 44 47 /** 45 48 The element in range [result, result + (last-first)) is 46 calculated as result[i] = (first[i] - m) / s tdwhere m and std49 calculated as result[i] = (first[i] - m) / s where m and std 47 50 are the mean and standard deviation, respectively, of the range 48 51 [first, last).
Note: See TracChangeset
for help on using the changeset viewer.