| 23 | } |
| 24 | |
| 25 | void TransformationXMLFile::load(const String& filename, TransformationDescription& transformation, bool fit_model) |
| 26 | { |
| 27 | //Filename for error messages in XMLHandler |
| 28 | file_ = filename; |
| 29 | |
| 30 | params_.clear(); |
| 31 | data_.clear(); |
| 32 | model_type_.clear(); |
| 33 | |
| 34 | parse_(filename, this); |
| 35 | |
| 36 | transformation.setDataPoints(data_); |
| 37 | |
| 38 | if (fit_model) |
| 39 | { |
| 40 | transformation.fitModel(model_type_, params_); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | void TransformationXMLFile::store(const String& filename, const TransformationDescription& transformation) |
| 45 | { |