Changeset 1717 for trunk/yat/normalizer/Spearman.h
- Timestamp:
- Jan 13, 2009, 11:32:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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)
Note: See TracChangeset
for help on using the changeset viewer.