ENH: rateOfChange function for interpolationTable.

Creates linear slope only from low and high elements around the sample
value, so rate will be discontinuous.  Would be better with higher
order gradient calculation.
This commit is contained in:
graham
2010-07-27 12:55:01 +01:00
parent 3ee05530e8
commit ba66d36bfd
2 changed files with 167 additions and 3 deletions

View File

@ -26,7 +26,7 @@ Class
Description
An interpolation/look-up table of scalar vs <Type> values.
The reference scalar values must be positive and monotonically increasing.
The reference scalar values must be monotonically increasing.
The handling of out-of-bounds values depends on the current setting
of @a outOfBounds.
@ -139,6 +139,10 @@ public:
//- Write
void write(Ostream& os) const;
//- Return the rate of change at the interpolation location
// for the give value
Type rateOfChange(const scalar) const;
// Member Operators