23 #ifndef FUNCTIONFROMPOINTSR_R_H 24 #define FUNCTIONFROMPOINTSR_R_H 26 #include "FunctionFromPointsR_T.h" 29 typedef std::deque<double> dq_double;
39 FunctionFromPointsR_R::const_iterator
PosMax(
void)
const;
43 double Max(
void)
const 44 {
return (*
PosMax()).second; }
47 {
return (*
PosMax()).first; }
48 FunctionFromPointsR_R::const_iterator
PosMin(
void)
const;
50 double Min(
void)
const 51 {
return (*
PosMin()).second; }
54 {
return (*
PosMin()).first; }
56 double firstX(
void)
const;
57 double firstY(
void)
const;
58 double lastX(
void)
const;
59 double lastY(
void)
const;
63 dq_double
Ceros(
void)
const;
double Max(void) const
Return the maximum value de las ordenadas definidas.
Definition: FunctionFromPointsR_R.h:43
double AbcisaMin(void) const
Return the abcisa correspondiente al valor mínimo de las ordenadas definidas.
Definition: FunctionFromPointsR_R.h:53
double Min(void) const
Return el valor mínimo de las ordenadas definidas.
Definition: FunctionFromPointsR_R.h:50
function from R to T defined on a set of points.
Definition: FunctionFromPointsR_T.h:37
FunctionFromPointsR_R & operator=(const FunctionFromPointsR_R &)
Operador asignación.
Definition: FunctionFromPointsR_R.cc:27
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.
Definition: FunctionFromPointsR_R.cc:255
FunctionFromPointsR_R::const_iterator PosMin(void) const
Return the position of the minimum.
Definition: FunctionFromPointsR_R.cc:55
dq_double Abcisas(void) const
Return the abcissae of the function definition points.
Definition: FunctionFromPointsR_R.cc:79
FunctionFromPointsR_R & Neg(void)
Change the sign of the function.
Definition: FunctionFromPointsR_R.cc:206
double getArea(void) const
Return the area enclosed by the function.
Definition: FunctionFromPointsR_R.cc:160
FunctionFromPointsR_R sub(const double &x0, const double &x1) const
Return the part of the function between x0 and x1.
Definition: FunctionFromPointsR_R.cc:197
FunctionFromPointsR_R::const_iterator PosMax(void) const
Return the position of the maximum.
Definition: FunctionFromPointsR_R.cc:41
dq_double Ceros(void) const
Return the roots of the function.
Definition: FunctionFromPointsR_R.cc:99
dq_double Dominio(void) const
Return the function domain.
Definition: FunctionFromPointsR_R.cc:70
FunctionFromPointsR_R getNeg(void) const
Return the function with the opposite sign.
Definition: FunctionFromPointsR_R.cc:202
double AbcisaMax(void) const
Return the abcisa correspondiente al valor máximo de las ordenadas definidas.
Definition: FunctionFromPointsR_R.h:46
f:R->R function defined on a set of points.
Definition: FunctionFromPointsR_R.h:36
dq_double Ordenadas(void) const
Return las ordenadas correspondientes a cada abcisa.
Definition: FunctionFromPointsR_R.cc:89