00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _eoEsStdev_h
00024 #define _eoEsStdev_h
00025
00026 #include <eoVector.h>
00027
00028
00036 template <class Fit>
00037 class eoEsStdev : public eoVector<Fit, double>
00038 {
00039 public:
00040
00041 using eoVector<Fit, double>::size;
00042
00043 typedef double Type;
00044
00045 eoEsStdev(void) : eoVector<Fit, double>() {}
00046
00047 virtual std::string className(void) const { return "eoEsStdev"; }
00048
00049 void printOn(std::ostream& os) const
00050 {
00051 eoVector<Fit,double>::printOn(os);
00052 os << ' ';
00053 std::copy(stdevs.begin(), stdevs.end(), std::ostream_iterator<double>(os, " "));
00054 os << ' ';
00055 }
00056
00057 void readFrom(std::istream& is)
00058 {
00059 eoVector<Fit,double>::readFrom(is);
00060 stdevs.resize(size());
00061 unsigned i;
00062 for (i = 0; i < size(); ++i)
00063 is >> stdevs[i];
00064 }
00065
00066
00067 std::vector<double> stdevs;
00068 };
00069
00070 #endif
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080