Islope Class Reference

Class for computing intervalslopes up to order 2.

#include <Islope.h>

Collaboration diagram for Islope:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Islope (void)
 Islope (int n)
 Islope (double a, int n)
 Islope (double a, double b, int n)
 Islope (const Islope &a)
virtual ~Islope ()
Islopeoperator= (const Islope &a)
Ioperator[] (int pos) const
void setDeg (int n)

Static Public Member Functions

static Islope getVar (const double &x, int n)
static Islope getVar (const double &x, const double &y, int n)
static Islope getVar (const I &x, int n)
static Islope getVar (const double &x, const double &y, const double &z, int n)

Public Attributes

int order
double * minmaxval


Detailed Description

Definition at line 16 of file Islope.h.


Constructor & Destructor Documentation

Islope::Islope ( void   )  [inline]

Constructor for the slope of the constant function f(x)=0. The slope order is 1.

Definition at line 115 of file Islope.h.

Islope::Islope ( int  n  )  [inline]

Constructor for the slope of order n of the constant function f(x)=0. n has to be 2.

Definition at line 128 of file Islope.h.

Islope::Islope ( double  a,
int  n 
) [inline]

Constructor for the slope of order n of the constant function f(x)=a. n has to be 2.

Definition at line 160 of file Islope.h.

Islope::Islope ( double  a,
double  b,
int  n 
) [inline]

Constructor for the slope of order n of a constant function with f(x) in [a,b], (a+b)/2 is used as middlepoint. n has to be 2.

Definition at line 193 of file Islope.h.

Islope::Islope ( const Islope a  )  [inline]

Copy Constructor

Definition at line 225 of file Islope.h.

Islope::~Islope (  )  [inline, virtual]

Deconstructor

Definition at line 1756 of file Islope.h.


Member Function Documentation

Islope Islope::getVar ( const double &  x,
const double &  y,
const double &  z,
int  n 
) [inline, static]

Constructs a slope of order n for the function f(x)=x in a specific interval [x,y]. z is used as middlepoint. n has to be 2.

Definition at line 366 of file Islope.h.

Islope Islope::getVar ( const I x,
int  n 
) [inline, static]

Constructs a slope of order n for the function f(x)=x in a specific interval [x,y]. (x+y)/2 is used as middlepoint. n has to be 2.

Definition at line 333 of file Islope.h.

Islope Islope::getVar ( const double &  x,
const double &  y,
int  n 
) [inline, static]

Constructs a slope of order n for the function f(x)=x in a specific interval [x,y]. (x+y)/2 is used as middlepoint. n has to be 2.

Definition at line 300 of file Islope.h.

Islope Islope::getVar ( const double &  x,
int  n 
) [inline, static]

Constructs a slope of order n for the function f(x)=x at a specific point x. n has to be 2.

Definition at line 267 of file Islope.h.

Islope & Islope::operator= ( const Islope a  )  [inline]

Operator = for the slope class.

Definition at line 236 of file Islope.h.

I & Islope::operator[] ( int  pos  )  const [inline]

Definition at line 258 of file Islope.h.

void Islope::setDeg ( int  n  )  [inline]

Sets the order of the slope to n. If order is set to 1, data[3]-data[6] is deleted. If order is set to 2 data[3]-data[6] is initialized as 0.

Definition at line 399 of file Islope.h.


Member Data Documentation

here is the data stored we need for computing the function value of x_min and x_max. x_min and x_max are the bounds of the variable x.

Definition at line 26 of file Islope.h.

the order of the slope. it can be 1 or 2.

Definition at line 24 of file Islope.h.


The documentation for this class was generated from the following file:

Generated on Tue Feb 9 14:47:19 2010 for COCONUT API by  doxygen 1.5.8