ScaledVonMisesDeriv.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2006 by Russell Edwards
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/MEAL/MEAL/ScaledVonMisesDeriv.h
10 
11 #ifndef __ScaledVonMisesDeriv_H
12 #define __ScaledVonMisesDeriv_H
13 
14 #include "MEAL/ProductRule.h"
15 //#include "MEAL/ArgumentBehaviour.h"
16 #include "MEAL/ScalarParameter.h"
17 #include "MEAL/ScalarArgument.h"
18 #include "MEAL/ScalarMath.h"
19 
20 namespace MEAL {
21 
23  class ScaledVonMisesDeriv :
24  public Univariate<Scalar> {
25 
26  public:
27 
31 
33  void set_centre (const Estimate<double> &centre);
34 
36  Estimate<double> get_centre () const;
37 
39  void set_concentration (const Estimate<double> &concentration);
40 
42  Estimate<double> get_concentration () const;
43 
45  void set_height (const Estimate<double> &height);
46 
48  Estimate<double> get_height () const;
49 
51  // void set_argument (unsigned dimension, Argument* axis);
52 
53  std::string get_name() const;
54 
56  // void parse (const std::string& text);
57 
58  protected:
60  ScalarParameter centre;
61  ScalarParameter concentration;
62  void init ();
63  Reference::To<Scalar> expression;
64  void calculate (double&, std::vector<double>*) {}
65 
66  };
67 
68 }
69 
70 #endif
const ScalarMath exp(const ScalarMath &x)
Return a ScalarMath instance representing exp(x)
Definition: ScalarMath.C:224
Scalar * get_expression() const
Access the expression.
Definition: ScalarMath.h:70
ScaledVonMisesDeriv & operator=(const ScaledVonMisesDeriv &copy)
Assignment operator.
Definition: ScaledVonMisesDeriv.C:47
std::string get_name() const
Connect the set_abscissa method to the axis value.
Definition: ScaledVonMisesDeriv.C:93
Estimate< double > get_concentration() const
Get the concentration.
Definition: ScaledVonMisesDeriv.C:74
Abstract template base class of univariate Function implementations.
Definition: Univariate.h:26
const ScalarMath sin(const ScalarMath &x)
Return a ScalarMath instance representing sin(x)
Definition: ScalarMath.C:160
ScaledVonMisesDeriv function.
Definition: ScaledVonMisesDeriv.h:28
Represents a scalar parameter, .
Definition: ScalarParameter.h:24
void set_centre(const Estimate< double > &centre)
Set the centre.
Definition: ScaledVonMisesDeriv.C:56
Estimate< double > get_height() const
Get the height.
Definition: ScaledVonMisesDeriv.C:86
Namespace in which all modeling and calibration related code is declared.
Definition: ExampleComplex2.h:16
const ScalarMath cos(const ScalarMath &x)
Return a ScalarMath instance representing cos(x)
Definition: ScalarMath.C:168
void calculate(double &, std::vector< double > *)
Calculate the complex value and its gradient.
Definition: ScaledVonMisesDeriv.h:74
void set_concentration(const Estimate< double > &concentration)
Set the concentration.
Definition: ScaledVonMisesDeriv.C:68
virtual void copy(const Function *model)
Does the work for operator =.
Definition: Function.C:58
ScalarParameter height
Parses the values of model parameters and fit flags from a string.
Definition: ScaledVonMisesDeriv.h:69
void set_height(const Estimate< double > &height)
Set the height.
Definition: ScaledVonMisesDeriv.C:80
Estimate< double > get_centre() const
Get the centre.
Definition: ScaledVonMisesDeriv.C:62

Generated using doxygen 1.8.17