00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #if !defined (octave_AEPBALANCE_h)
00024 #define octave_AEPBALANCE_h 1
00025
00026 #if defined (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION)
00027 #pragma interface
00028 #endif
00029
00030 #include <iostream>
00031 #include <string>
00032
00033 #include "dMatrix.h"
00034
00035 class
00036 AEPBALANCE
00037 {
00038 public:
00039
00040 AEPBALANCE (void) : balanced_mat (), balancing_mat () { }
00041
00042 AEPBALANCE (const Matrix& a,const std::string& balance_job)
00043 {
00044 init (a, balance_job);
00045 }
00046
00047 AEPBALANCE (const AEPBALANCE& a)
00048 : balanced_mat (a.balanced_mat), balancing_mat (a.balancing_mat) { }
00049
00050 AEPBALANCE& operator = (const AEPBALANCE& a)
00051 {
00052 if (this != &a)
00053 {
00054 balanced_mat = a.balanced_mat;
00055 balancing_mat = a.balancing_mat;
00056 }
00057 return *this;
00058 }
00059
00060 ~AEPBALANCE (void) { }
00061
00062 Matrix balanced_matrix (void) const { return balanced_mat; }
00063
00064 Matrix balancing_matrix (void) const { return balancing_mat; }
00065
00066 friend std::ostream& operator << (std::ostream& os, const AEPBALANCE& a);
00067
00068 private:
00069
00070 Matrix balanced_mat;
00071 Matrix balancing_mat;
00072
00073 int init (const Matrix& a, const std::string& balance_job);
00074 };
00075
00076 #endif
00077
00078
00079
00080
00081
00082