UnaryExample.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/UnaryExample.h
10
11#ifndef __MEAL_UnaryExample_H
12#define __MEAL_UnaryExample_H
13
14#include "MEAL/UnaryScalar.h"
15
16namespace MEAL {
17
20 {
21
22 public:
23
24 // ///////////////////////////////////////////////////////////////////
25 //
26 // UnaryScalar implementation
27 //
28 // ///////////////////////////////////////////////////////////////////
29
31 double function (double x);
32
34 double dfdx (double x);
35
36
37 // ///////////////////////////////////////////////////////////////////
38 //
39 // Function implementation
40 //
41 // ///////////////////////////////////////////////////////////////////
42
44 string get_name () const;
45
46 };
47
48}
49
50
51#endif
Example of a UnaryScalar child.
Definition UnaryExample.h:20
double function(double x)
The function.
string get_name() const
Return the name of the class.
double dfdx(double x)
And its first derivative.
Abstract base class of unary functions of another Scalar function.
Definition UnaryScalar.h:22
Namespace in which all modeling and calibration related code is declared.
Definition ExampleComplex2.h:16

Generated using doxygen 1.14.0