BALL
1.4.79
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
MATHS
piecewisePolynomial.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
// $Id: piecewisePolynomial.h,v 1.19 2005/12/23 17:01:48 amoll Exp $
5
//
6
7
#ifndef BALL_MATHS_PPOLYNOMIAL_H
8
#define BALL_MATHS_PPOLYNOMIAL_H
9
10
#ifndef BALL_MATHS_PIECEWISEFUNCTION_H
11
# include <
BALL/MATHS/piecewiseFunction.h
>
12
#endif
13
14
namespace
BALL
15
{
27
class
BALL_EXPORT
PiecewisePolynomial
28
:
public
PiecewiseFunction
29
{
30
public
:
31
32
BALL_CREATE
(
PiecewisePolynomial
)
33
34
37
40
PiecewisePolynomial
();
41
44
PiecewisePolynomial
(
const
PiecewisePolynomial
& polynomial) ;
45
49
PiecewisePolynomial
(
Size
degree,
const
std::vector<Interval>& intervals,
50
const
std::vector<Coefficients>& coefficients) ;
51
54
virtual
~
PiecewisePolynomial
();
55
57
60
63
PiecewisePolynomial
& operator = (
const
PiecewisePolynomial
& poly);
64
67
virtual
void
clear();
68
70
73
76
void
set(
Size
degree,
const
std::vector<Interval>& intervals,
const
std::vector<Coefficients>& coeffs);
77
79
void
setDegree(
Size
degree);
80
82
Size
getDegree()
const
;
83
85
virtual
double
operator () (
double
x)
const
;
86
88
91
94
bool
operator ==
(
const
PiecewisePolynomial
& poly)
const
;
95
97
100
103
virtual
void
dump (std::ostream& s = std::cout,
Size
depth = 0)
const
;
104
106
107
protected
:
108
109
/*_ The degree of the polynomial
110
*/
111
Size
degree_
;
112
113
};
114
115
}
116
117
#endif // BALL_MATHS_PPPOLYNOMIAL_H
BALL_CREATE
#define BALL_CREATE(name)
Definition:
create.h:62
BALL::PiecewiseFunction
Definition:
piecewiseFunction.h:34
BALL::PiecewisePolynomial
Definition:
piecewisePolynomial.h:27
piecewiseFunction.h
BALL::PiecewisePolynomial::degree_
Size degree_
Definition:
piecewisePolynomial.h:111
BALL::operator==
BALL_EXPORT bool operator==(const String &s1, const String &s2)
BALL_SIZE_TYPE
BALL_EXPORT
#define BALL_EXPORT
Definition:
COMMON/global.h:50
Generated by
1.8.7