327 |
30 May 05 |
jari |
// $Id$ |
327 |
30 May 05 |
jari |
2 |
|
570 |
05 Apr 06 |
jari |
3 |
/* |
2119 |
12 Dec 09 |
peter |
Copyright (C) 2005, 2006 Jari Häkkinen, Markus Ringnér |
4359 |
23 Aug 23 |
peter |
Copyright (C) 2007 Peter Johansson |
4359 |
23 Aug 23 |
peter |
Copyright (C) 2008 Jari Häkkinen, Peter Johansson |
4178 |
02 Jun 22 |
peter |
Copyright (C) 2012, 2014, 2022 Peter Johansson |
570 |
05 Apr 06 |
jari |
8 |
|
1432 |
25 Aug 08 |
peter |
This file is part of the yat library, http://dev.thep.lu.se/yat |
570 |
05 Apr 06 |
jari |
10 |
|
675 |
10 Oct 06 |
jari |
The yat library is free software; you can redistribute it and/or |
675 |
10 Oct 06 |
jari |
modify it under the terms of the GNU General Public License as |
1486 |
09 Sep 08 |
jari |
published by the Free Software Foundation; either version 3 of the |
675 |
10 Oct 06 |
jari |
License, or (at your option) any later version. |
570 |
05 Apr 06 |
jari |
15 |
|
675 |
10 Oct 06 |
jari |
The yat library is distributed in the hope that it will be useful, |
675 |
10 Oct 06 |
jari |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
675 |
10 Oct 06 |
jari |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
570 |
05 Apr 06 |
jari |
General Public License for more details. |
570 |
05 Apr 06 |
jari |
20 |
|
570 |
05 Apr 06 |
jari |
You should have received a copy of the GNU General Public License |
1487 |
10 Sep 08 |
jari |
along with yat. If not, see <http://www.gnu.org/licenses/>. |
570 |
05 Apr 06 |
jari |
23 |
*/ |
570 |
05 Apr 06 |
jari |
24 |
|
2881 |
18 Nov 12 |
peter |
25 |
#include <config.h> |
2881 |
18 Nov 12 |
peter |
26 |
|
1432 |
25 Aug 08 |
peter |
27 |
#include "QuantileNormalizer.h" |
4186 |
04 Jul 22 |
peter |
28 |
#include "QuantileNormalizer2.h" |
734 |
06 Jan 07 |
peter |
29 |
|
4178 |
02 Jun 22 |
peter |
30 |
#include "yat/utility/MatrixMutable.h" |
327 |
30 May 05 |
jari |
31 |
|
1453 |
29 Aug 08 |
peter |
32 |
#include <cassert> |
1453 |
29 Aug 08 |
peter |
33 |
|
327 |
30 May 05 |
jari |
34 |
namespace theplu { |
680 |
11 Oct 06 |
jari |
35 |
namespace yat { |
1497 |
12 Sep 08 |
peter |
36 |
namespace normalizer { |
327 |
30 May 05 |
jari |
37 |
|
4125 |
14 Jan 22 |
peter |
38 |
void QuantileNormalizer::operator()(const utility::MatrixBase& data, |
4178 |
02 Jun 22 |
peter |
39 |
utility::MatrixMutable& result) const |
435 |
14 Dec 05 |
markus |
40 |
{ |
1453 |
29 Aug 08 |
peter |
41 |
assert(data.rows()==result.rows()); |
1518 |
21 Sep 08 |
peter |
42 |
assert(data.columns()==result.columns()); |
1518 |
21 Sep 08 |
peter |
43 |
|
4186 |
04 Jul 22 |
peter |
44 |
QuantileNormalizer2 normalizer; |
4186 |
04 Jul 22 |
peter |
45 |
normalizer(data, result); |
1304 |
14 May 08 |
peter |
46 |
} |
1304 |
14 May 08 |
peter |
47 |
|
1304 |
14 May 08 |
peter |
48 |
|
1304 |
14 May 08 |
peter |
49 |
|
680 |
11 Oct 06 |
jari |
50 |
}}} // end of namespace utility, yat and thep |