# source:trunk/yat/normalizer/QuantileNormalizer.h@1575

Last change on this file since 1575 was 1575, checked in by Jari Häkkinen, 13 years ago

• Property svn:eol-style set to `native`
• Property svn:keywords set to `Id`
File size: 1.6 KB
Line
1#ifndef _theplu_yat_normalizer_quantile_normalizer_
2#define _theplu_yat_normalizer_quantile_normalizer_
3
4// \$Id: QuantileNormalizer.h 1575 2008-10-14 07:19:48Z jari \$
5
6/*
7  Copyright (C) 2008 Peter Johansson
8
9  This file is part of the yat library, http://dev.thep.lu.se/yat
10
11  The yat library is free software; you can redistribute it and/or
12  modify it under the terms of the GNU General Public License as
13  published by the Free Software Foundation; either version 3 of the
15
16  The yat library is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  General Public License for more details.
20
21  You should have received a copy of the GNU General Public License
22  along with yat. If not, see <http://www.gnu.org/licenses/>.
23*/
24
25namespace theplu {
26namespace yat {
27namespace utility {
28  class Matrix;
29}
30namespace normalizer {
31
32  /**
33     \brief Perform quantile normalization
34
35     \since New in yat 0.5
36   */
37  class QuantileNormalizer
38  {
39  public:
40    /**
41       The \a matrix is normalized by sorting each column, replacing
42       each value with the average across rows, and undo the sorting
43       in step 1. This results in a Matrix \a result in which each
44       column has the same distribution of data, and the rank of an
45       element within a column is the same as in \a matrix.
46
47       \note dimensions of \a matrix and \a result must match.
48     */
49    void operator()(const utility::Matrix& matrix,
50                    utility::Matrix& result) const;
51  };
52
53}}} // end of namespace normalizer, yat and thep
54#endif
Note: See TracBrowser for help on using the repository browser.