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
20namespace MEAL {
21
23 class ScaledVonMisesDeriv :
24 public Univariate<Scalar> {
25
26 public:
27
28 ScaledVonMisesDeriv ();
29 ScaledVonMisesDeriv (const ScaledVonMisesDeriv& copy);
30 ScaledVonMisesDeriv & operator = (const ScaledVonMisesDeriv& copy);
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
virtual void copy(const Function *model)
Does the work for operator =.
Definition Function.C:58
Represents a scalar parameter, .
Definition ScalarParameter.h:19
void set_centre(const Estimate< double > &centre)
Set the centre.
Definition ScaledVonMisesDeriv.C:56
ScaledVonMisesDeriv & operator=(const ScaledVonMisesDeriv &copy)
Assignment operator.
Definition ScaledVonMisesDeriv.C:47
Estimate< double > get_height() const
Get the height.
Definition ScaledVonMisesDeriv.C:86
std::string get_name() const
Connect the set_abscissa method to the axis value.
Definition ScaledVonMisesDeriv.C:93
Estimate< double > get_centre() const
Get the centre.
Definition ScaledVonMisesDeriv.C:62
void set_height(const Estimate< double > &height)
Set the height.
Definition ScaledVonMisesDeriv.C:80
void set_concentration(const Estimate< double > &concentration)
Set the concentration.
Definition ScaledVonMisesDeriv.C:68
Estimate< double > get_concentration() const
Get the concentration.
Definition ScaledVonMisesDeriv.C:74
void calculate(double &, std::vector< double > *)
Calculate the complex value and its gradient.
Definition ScaledVonMisesDeriv.h:64
ScalarParameter height
Parses the values of model parameters and fit flags from a string.
Definition ScaledVonMisesDeriv.h:59
Univariate()
Definition Univariate.h:28
Namespace in which all modeling and calibration related code is declared.
Definition ExampleComplex2.h:16

Generated using doxygen 1.14.0