Changeset 2666 for trunk/src/STFitter.h


Ignore:
Timestamp:
10/15/12 15:52:38 (12 years ago)
Author:
Malte Marquarding
Message:

Ticket #173: added setting of constraints on the fitter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STFitter.h

    r1932 r2666  
    3939#include <scimath/Functionals/Function.h>
    4040#include <scimath/Functionals/CompoundFunction.h>
     41#include <scimath/Fitting/GenericL2Fit.h>
     42
    4143
    4244#include "STFitEntry.h"
     45
    4346
    4447namespace asap {
     
    5558  bool setParameters(std::vector<float> params);
    5659  bool setFixedParameters(std::vector<bool> fixed);
     60  void addConstraint(const std::vector<float>& constraint);
    5761
    5862  std::vector<float> getResidual() const;
     
    7680private:
    7781  void clear();
     82  void applyConstraints(casa::GenericL2Fit<casa::Float>& fitter);
    7883  casa::Vector<casa::Float> x_;
    7984  casa::Vector<casa::Float> y_;
     
    8792  casa::Vector<casa::Float> parameters_;
    8893  casa::Vector<casa::Bool> fixedpar_;
     94  std::vector<std::vector<float> > constraints_;
    8995
    9096  casa::Vector<casa::Float> error_;
Note: See TracChangeset for help on using the changeset viewer.