6 #ifndef CNOID_UTIL_INTERPOLATOR_H_INCLUDED
7 #define CNOID_UTIL_INTERPOLATOR_H_INCLUDED
18 int appendSample(
double x,
double y);
19 void setEndPoint(
int sampleIndex,
bool isNatural =
false);
22 void getDomain(
double& out_lower,
double& out_upper);
23 double interpolate(
double x);
30 int updateCubicSplineSegment(
int begin);
31 int updateSegmentBetweenTwoSamples(
int begin);
33 enum SegmentType { UNDETERMINED, CUBIC_SPLINE, POLYNOMINAL };
49 SegmentType segmentType;
52 std::vector<Sample> samples;
53 int prevReferredSegments;
Definition: Interpolator.h:14
#define CNOID_EXPORT
Definition: Util/exportdecl.h:13