Mean.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/MEAL/MEAL/Mean.h
10 
11 #ifndef __MEAL_Mean_H
12 #define __MEAL_Mean_H
13 
14 #include "ReferenceAble.h"
15 
16 namespace MEAL {
17 
19 
22  template<class T>
23  class Mean : public Reference::Able {
24 
25  public:
26 
28  virtual void integrate (const T* model) = 0;
29 
31  virtual void update (T* model) const = 0;
32 
34  virtual double chisq (const T* model) const { return 0; }
35 
36  };
37 
38 }
39 
40 #endif
41 
virtual void update(T *model) const =0
Update the model parameters with the current value of the mean.
virtual double chisq(const T *model) const
Return the normalized difference between the mean and model.
Definition: Mean.h:44
Namespace in which all modeling and calibration related code is declared.
Definition: ExampleComplex2.h:16
virtual void integrate(const T *model)=0
Add the Function parameters to the running mean.

Generated using doxygen 1.8.17