Fixed bug in checking the maximum X value
This commit is contained in:
parent
6035eaec4d
commit
7bd2ccbee4
@ -107,7 +107,10 @@ const Interpolate& Interpolate::operator=(const Interpolate& a)
|
|||||||
|
|
||||||
double Interpolate::getMaxX() const
|
double Interpolate::getMaxX() const
|
||||||
{
|
{
|
||||||
|
if (logx)
|
||||||
return exp(spline->x[spline->size-1]);
|
return exp(spline->x[spline->size-1]);
|
||||||
|
else
|
||||||
|
return spline->x[spline->size-1];
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user