xc
Public Member Functions | List of all members
FunctionFromPointsR_R Class Reference

f:R->R function defined on a set of points. More...

#include <FunctionFromPointsR_R.h>

Inheritance diagram for FunctionFromPointsR_R:
Inheritance graph
[legend]
Collaboration diagram for FunctionFromPointsR_R:
Collaboration graph
[legend]

Public Member Functions

FunctionFromPointsR_R::const_iterator PosMax (void) const
 Return the position of the maximum.
 
FunctionFromPointsR_Roperator= (const FunctionFromPointsR_R &)
 Operador asignación.
 
FunctionFromPointsR_Roperator= (const double &)
 Assignment operator. Equal to a constant.
 
double Max (void) const
 Return the maximum value de las ordenadas definidas.
 
double AbcisaMax (void) const
 Return the abcisa correspondiente al valor máximo de las ordenadas definidas.
 
FunctionFromPointsR_R::const_iterator PosMin (void) const
 Return the position of the minimum.
 
double Min (void) const
 Return el valor mínimo de las ordenadas definidas.
 
double AbcisaMin (void) const
 Return the abcisa correspondiente al valor mínimo de las ordenadas definidas.
 
double getArea (void) const
 Return the area enclosed by the function.
 
double firstX (void) const
 
double firstY (void) const
 
double lastX (void) const
 
double lastY (void) const
 
dq_double Dominio (void) const
 Return the function domain.
 
dq_double Abcisas (void) const
 Return the abcissae of the function definition points.
 
dq_double Ordenadas (void) const
 Return las ordenadas correspondientes a cada abcisa.
 
dq_double Ceros (void) const
 Return the roots of the function.
 
FunctionFromPointsR_R sub (const double &x0, const double &x1) const
 Return the part of the function between x0 and x1.
 
FunctionFromPointsR_R getNeg (void) const
 Return the function with the opposite sign.
 
FunctionFromPointsR_RNeg (void)
 Change the sign of the function.
 
FunctionFromPointsR_Roperator+= (const double &)
 
FunctionFromPointsR_Roperator+= (const FunctionFromPointsR_R &)
 
FunctionFromPointsR_Roperator-= (const double &)
 
FunctionFromPointsR_Roperator-= (const FunctionFromPointsR_R &)
 
FunctionFromPointsR_Roperator*= (const double &)
 
FunctionFromPointsR_Roperator*= (const FunctionFromPointsR_R &)
 
FunctionFromPointsR_Roperator/= (const double &)
 
FunctionFromPointsR_Roperator/= (const FunctionFromPointsR_R &)
 
FunctionFromPointsR_R integra (const double &x0, const double &x1, const double &delta=-1.0) const
 Return the function that results from the integration between x0 and x1. More...
 
- Public Member Functions inherited from FunctionFromPointsR_T< double >
double Valor (const double &) const
 Return el valor que corresponde a la abcisa z.
 
std::vector< double > Valores (const std::vector< double > &) const
 Return los valores que corresponden a las abcisas z.
 
double operator() (const double &z) const
 
std::vector< double > operator() (const std::vector< double > &zs) const
 
const_iterator begin (void) const
 Return an iterator to the beginning of the point container.
 
const_reverse_iterator rbegin (void) const
 Return an reverse iterator to the end of the point container.
 
const_iterator end (void) const
 Return an iterator to the end of the point container.
 
const_reverse_iterator rend (void) const
 Return an iterator to the beginning of the point container.
 
size_t size (void) const
 Return the number of points that define the function.
 
size_t empty (void) const
 Return true if there are no points.
 
void insert (const double &x, const double &y)
 Inserts the pair (x,y) as a point of the function.
 
void clear (void)
 

Additional Inherited Members

- Public Types inherited from FunctionFromPointsR_T< double >
typedef std::map< double, double > value_map
 
typedef value_map::iterator iterator
 
typedef value_map::const_iterator const_iterator
 
typedef value_map::const_reverse_iterator const_reverse_iterator
 

Detailed Description

f:R->R function defined on a set of points.

Function that for each point x from the real domain returns a real value. The correspondence is established by points, that is, by pairs (x1,y1), (x2,y2), ...

Member Function Documentation

◆ integra()

FunctionFromPointsR_R FunctionFromPointsR_R::integra ( const double &  x0,
const double &  x1,
const double &  d = -1.0 
) const

Return the function that results from the integration between x0 and x1.


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