~charon-developers/+junk/charon-flow-gerald

« back to all changes in this revision

Viewing changes to include/charon/SimpleIterator.hxx

  • Committer: gerald.mwangi at gmx
  • Date: 2016-04-21 12:40:55 UTC
  • Revision ID: gerald.mwangi@gmx.de-20160421124055-s8m4icg5vnq1wuy0
covariance motion model: Added local model

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
        ParameteredObject::_addParameter (epsilon, "epsilon",
82
82
                "flow change threshold (0 to disable)", 0.);
83
83
        ParameteredObject::_addParameter<std::string>(norm, "norm",
84
 
                "norm postprocessing", "max", "{max;mean}");
 
84
        "norm postprocessing", "max", "{max;mean;median}");
85
85
        ParameteredObject::_addParameter (accumulate, "accumulate",
86
86
                "set to true if iteration calculates flow difference, "
87
87
                "i.e. operates with zero initial guess", true);
359
359
                        curChange = norms.max();
360
360
                else if (norm() == "mean")
361
361
                        curChange = norms.mean();
 
362
        else if(norm()=="median")
 
363
            curChange=norms.median();
362
364
                else {
363
365
                        std::ostringstream msg;
364
366
                        msg << __FILE__ << ":" << __LINE__ << "\n\t";