457
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
457
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
7016
|
9 Free Software Foundation; either version 3 of the License, or (at your |
|
10 option) any later version. |
457
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
7016
|
18 along with Octave; see the file COPYING. If not, see |
|
19 <http://www.gnu.org/licenses/>. |
457
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_AEPBALANCE_h) |
|
24 #define octave_AEPBALANCE_h 1 |
|
25 |
3503
|
26 #include <iostream> |
1730
|
27 #include <string> |
|
28 |
457
|
29 #include "dMatrix.h" |
|
30 |
1881
|
31 class |
6108
|
32 OCTAVE_API |
1881
|
33 AEPBALANCE |
457
|
34 { |
|
35 public: |
|
36 |
1881
|
37 AEPBALANCE (void) : balanced_mat (), balancing_mat () { } |
457
|
38 |
3504
|
39 AEPBALANCE (const Matrix& a,const std::string& balance_job) |
1528
|
40 { |
|
41 init (a, balance_job); |
|
42 } |
|
43 |
|
44 AEPBALANCE (const AEPBALANCE& a) |
1881
|
45 : balanced_mat (a.balanced_mat), balancing_mat (a.balancing_mat) { } |
457
|
46 |
1528
|
47 AEPBALANCE& operator = (const AEPBALANCE& a) |
|
48 { |
1881
|
49 if (this != &a) |
|
50 { |
|
51 balanced_mat = a.balanced_mat; |
|
52 balancing_mat = a.balancing_mat; |
|
53 } |
1528
|
54 return *this; |
|
55 } |
|
56 |
1933
|
57 ~AEPBALANCE (void) { } |
|
58 |
1528
|
59 Matrix balanced_matrix (void) const { return balanced_mat; } |
|
60 |
|
61 Matrix balancing_matrix (void) const { return balancing_mat; } |
|
62 |
3504
|
63 friend std::ostream& operator << (std::ostream& os, const AEPBALANCE& a); |
457
|
64 |
|
65 private: |
|
66 |
|
67 Matrix balanced_mat; |
|
68 Matrix balancing_mat; |
1881
|
69 |
5275
|
70 octave_idx_type init (const Matrix& a, const std::string& balance_job); |
457
|
71 }; |
|
72 |
|
73 #endif |
|
74 |
|
75 /* |
|
76 ;;; Local Variables: *** |
|
77 ;;; mode: C++ *** |
|
78 ;;; End: *** |
|
79 */ |