MultivariatePolicy.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2022 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/MEAL/MEAL/MultivariatePolicy.h
10 
11 #ifndef __MEAL_MultivariatePolicy_H
12 #define __MEAL_MultivariatePolicy_H
13 
14 #include "MEAL/ArgumentPolicy.h"
15 
16 namespace MEAL {
17 
19  class MultivariatePolicy : public ArgumentPolicy
20  {
21  public:
22 
24  MultivariatePolicy (unsigned ndim, Function* context);
25 
28 
31 
34 
36  MultivariatePolicy* clone (Function* context) const;
37 
39  void set_abscissa (unsigned idim, double value);
40 
42  double get_abscissa (unsigned idim) const;
43 
45  void set_argument (unsigned idim, Argument* axis);
46 
47  protected:
48 
50  std::vector<double> abscissa;
51 
52  };
53 
54 }
55 
56 #endif
57 
An argument of a specified type.
Definition: Axis.h:31
void set_abscissa(unsigned idim, double value)
Set the abscissa value.
Definition: MultivariatePolicy.C:58
void set_argument(unsigned idim, Argument *axis)
If Argument is an Axis<double>, connect it to set_abscissa.
Definition: MultivariatePolicy.C:89
Pure virtual base class of function arguments.
Definition: Argument.h:30
Managers of Function arguments.
Definition: ArgumentPolicy.h:26
~MultivariatePolicy()
Desctructor.
Definition: MultivariatePolicy.C:25
MultivariatePolicy(unsigned ndim, Function *context)
Default constructor.
Definition: MultivariatePolicy.C:18
const MultivariatePolicy & operator=(const MultivariatePolicy &)
Assignment operator.
Definition: MultivariatePolicy.C:38
Namespace in which all modeling and calibration related code is declared.
Definition: ExampleComplex2.h:16
static bool verbose
Verbosity flag.
Definition: Function.h:54
Callback< Type > signal
The mechanism by which methods are connected.
Definition: Axis.h:102
A function of one or more scalar variables.
Definition: MultivariatePolicy.h:24
Pure virtual base class of all functions.
Definition: Function.h:49
std::vector< double > abscissa
The abscissa values.
Definition: MultivariatePolicy.h:60
MultivariatePolicy * clone(Function *context) const
Clone operator.
Definition: MultivariatePolicy.C:49
double get_abscissa(unsigned idim) const
Get the abscissa value.
Definition: MultivariatePolicy.C:72

Generated using doxygen 1.8.17