00001 // DataPoint.cpp: implementation of the DataPoint class. 00002 // 00004 00005 #include "DataPoint.h" 00006 00008 // Construction/Destruction 00010 00011 DataPoint::DataPoint(double time, double datum, double error) 00012 { 00013 this->time = time; 00014 this->datum = datum; 00015 this->error = error; 00016 } 00017 00018 DataPoint::~DataPoint() 00019 { 00020 00021 } 00022 00023 void DataPoint::RescaleTime(double scaleFac) 00024 { 00025 time = scaleFac*time; 00026 } 00027 00028 void DataPoint::RescaleDatum(double scaleFac) 00029 { 00030 datum = scaleFac*datum; 00031 } 00032 00033 void DataPoint::RescaleError(double scaleFac) 00034 { 00035 error = scaleFac*error; 00036 }