00001 // QMcBeaver 00002 // 00003 // Constructed by 00004 // 00005 // Michael Todd Feldmann 00006 // and 00007 // David Randall "Chip" Kent IV 00008 // 00009 // Copyright 2000. All rights reserved. 00010 // 00011 // drkent@users.sourceforge.net mtfeldmann@users.sourceforge.net 00012 00013 #ifndef PARAMETERSCOREPAIR_H 00014 #define PARAMETERSCOREPAIR_H 00015 00016 #include "Array1D.h" 00017 #include "QMCObjectiveFunctionResult.h" 00018 #include <iomanip> 00019 00025 class ParameterScorePair 00026 { 00027 public: 00031 ParameterScorePair(); 00032 00040 ParameterScorePair(QMCObjectiveFunctionResult score, Array1D<double> & parameters); 00041 00045 ParameterScorePair(const ParameterScorePair &PSP); 00046 00052 double getScore() const; 00053 00059 Array1D<double> * getParameters(); 00060 00066 void operator=(const ParameterScorePair & rhs); 00067 00071 bool operator<(const ParameterScorePair &PSP) const; 00072 00076 friend ostream& operator<<(ostream & strm, 00077 const ParameterScorePair & rhs); 00078 00079 private: 00080 QMCObjectiveFunctionResult Score; 00081 Array1D<double> Parameters; 00082 }; 00083 00084 #endif