Some 'improvements' added

This commit is contained in:
mac 2000-06-13 14:31:22 +00:00
commit 49ee190e10
4 changed files with 45 additions and 41 deletions

View file

@ -48,29 +48,22 @@ class eoEsSimple : public eoFixedLength<Fit, double>
{
public :
typedef double Type;
eoEsSimple(void) : eoFixedLength<Fit, double>() {}
std::string className(void) const { return "eoEsSimple"; }
void printOn(ostream& os) const
void printOn(std::ostream& os) const
{
os << size() << ' ';
eoFixedLength<Fit,double>::printOn(os);
std::copy(begin(), end(), ostream_iterator<double>(os));
os << ' ' << stdev << ' ';
}
void readFrom(istream& is)
{
unsigned sz;
is >> sz;
resize(sz);
unsigned i;
for (i = 0; i < sz; ++i)
is >> operator[](i);
eoFixedLength<Fit,double>::readFrom(is);
is >> stdev;
}