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
16namespace MEAL {
17
19
21
22 template<class T>
23 class Mean : public Reference::Able
24 {
25
26 public:
27
29 virtual void integrate (const T* model) = 0;
30
32 virtual void update (T* model) const = 0;
33
35 virtual double chisq (const T* model) const { return 0; }
36
37 };
38
39}
40
41#endif
42
Pure virtual base class of objects that compute mean model parameters.
Definition Mean.h:24
virtual double chisq(const T *model) const
Return the normalized difference between the mean and model.
Definition Mean.h:35
virtual void integrate(const T *model)=0
Add the Function parameters to the running mean.
virtual void update(T *model) const =0
Update the model parameters with the current value of the mean.
Namespace in which all modeling and calibration related code is declared.
Definition ExampleComplex2.h:16

Generated using doxygen 1.14.0