#include <Interpolate.h>
Inheritance diagram for Curve:

Public Types | |
| typedef float | value_t |
| typedef std::vector< value_t > | vector_t |
| typedef std::vector< value_t >::iterator | vector_it |
| typedef std::vector< value_t >::const_iterator | vector_cit |
Public Methods | |
| Curve () | |
| Default constructor. | |
| Curve (const Curve &) | |
| Copy constructor. | |
| virtual | ~Curve () |
| Destructor. | |
| const Curve & | operator= (const Curve &) |
| Assignment operator. | |
| virtual void | serialize (Archive &) |
| Serialize to or from a data archive. | |
| vector_t | getBreaks () |
| Get a list of the x values of the source data set. | |
| void | setBreaks (const vector_t &breaks) |
| Set the x values of the source data set. | |
| void | setData (const vector_t &data) |
| Set the y values of the source data set. | |
| void | interpolate (value_t spacing) |
| Interpolate the source data set and resample at at equaly spaced values of x to form the lookup table. | |
| value_t | getPrecise (value_t x) const |
| Get the "precise" value y(x) from bicubic interpolation. | |
| value_t | getValue (value_t x) const |
| Get the "quick and dirty" value of y(x) from linear interpolation of the resampled lookup table. | |
| void | dumpCurve (FILE *f) const |
| Dump the y(x) lookup table to an output file. | |
| virtual std::string | asString () const |
| String representation. | |
| virtual std::string | typeString () const |
| Type representation. | |
| virtual value_t | getValue (value_t, value_t) const |
| virtual value_t | getPrecise (value_t, value_t) const |
| int | find (vector_t b, value_t v) const |
| virtual void | parseXML (const char *cdata) |
| Parse cdata from within the XML tags for this object. | |
| virtual void | convertXML () |
| Convert XML data to internal format prior to serialization. | |
Public Attributes | |
| Enum< InterpolatedData< float >::Method > | method |
Static Public Attributes | |
| const Enumeration | Method |
Protected Methods | |
| virtual void | _compute_second_derivatives () |
| Compute the second derivative for bicubic interpolation. | |
| vector_t | _compute_second_derivatives (const vector_t &breaks, const vector_t &data) |
The curve input is a discrete set of (x, y) pairs sampled from a continuous curve y = F(x). A smooth curve is formed from these points using bicubic interpolation, and then resampled at a specified number of evenly spaced values of x. The resampled values can then be used as a fast lookup table (with linear interpolation) to find y(x).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Default constructor.
|
|
|
Copy constructor.
|
|
|
Destructor.
|
|
||||||||||||
|
|
|
|
Compute the second derivative for bicubic interpolation.
Implements InterpolatedData< float >. |
|
|
String representation.
Implements BaseType. |
|
|
Convert XML data to internal format prior to serialization. This method is currently only called by the XML parser for Object classes. If another BaseType class requires this method, a call must be added to the appropriate XML handler in the parser. |
|
|
Dump the y(x) lookup table to an output file.
|
|
||||||||||||
|
|
|
|
Get a list of the x values of the source data set.
|
|
||||||||||||
|
|
|
|
Get the "precise" value y(x) from bicubic interpolation.
|
|
||||||||||||
|
|
|
|
Get the "quick and dirty" value of y(x) from linear interpolation of the resampled lookup table.
|
|
|
Interpolate the source data set and resample at at equaly spaced values of x to form the lookup table.
|
|
|
Assignment operator.
|
|
|
Parse cdata from within the XML tags for this object.
Reimplemented in SimDate, EnumLink, GeoPos, LLA, UTM, Matrix3, Quat, Real, and Vector3. |
|
|
Serialize to or from a data archive.
Reimplemented from InterpolatedData< float >. |
|
|
Set the x values of the source data set.
|
|
|
Set the y values of the source data set.
|
|
|
Type representation.
Implements BaseType. |
|
|
|
|
|
|
|
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage. Generated on Tue Oct 14 12:06:40 2003, using Doxygen 1.2.18. |