20 static ossimTrace traceDebug (
"ossimLagrangeInterpolator:debug");
22 static const char HEADER_LABEL[] =
"LAGRANGE_INTERP";
30 static const char MODULE[] =
"ossimLagrangeInterpolator(istream&) CONSTRUCTOR";
31 if (traceDebug())
CLOG <<
"entering..." << endl;
35 if (traceDebug())
CLOG <<
"returning..." << endl;
43 const std::vector<NEWMAT::ColumnVector>& data_array)
44 : theTeeArray (t_array),
45 theDataArray(data_array),
48 static const char MODULE[]=
"ossimLagrangeInterpolator(int, double, Vector) CONSTRUCTOR";
49 if (traceDebug())
CLOG <<
"entering..." << endl;
58 for (i=0; i<numPoints; i++)
70 if (traceDebug())
CLOG <<
"returning..." << endl;
95 static const char MODULE[] =
"ossimLagrangeInterpolator::interpolate()";
96 if (traceDebug())
CLOG <<
"entering..." << endl;
115 if (traceDebug())
CLOG <<
"leaving." << endl;
126 stream <<
"\n" << HEADER_LABEL
132 stream << setprecision(20);
155 while (s !=
"LAGRANGE_INTERP")
159 if (count == 10)
break;
164 cerr <<
"ossimLagrangeInterpolator operator>> ERROR:" 165 <<
"\nStream seems to not contain LAGRANGE_INTERP header!" 166 <<
"\nReturning..." << endl;
177 double tee, normalizer;
178 NEWMAT::ColumnVector v(3);
181 stream >> tee >> v(0) >> v(1) >> v(2) >> normalizer;
~ossimLagrangeInterpolator()
bool interpolate(const double &t, NEWMAT::ColumnVector &result) const
void addData(const double &t, const NEWMAT::ColumnVector &data)
os2<< "> n<< " > nendobj n
unsigned int ossim_uint32
std::vector< double > theTeeArray
ossim_uint32 theNumElements
std::basic_istream< char > istream
Base class for char input streams.
std::vector< double > theNormalizer
istream & operator>>(istream &stream, ossimLagrangeInterpolator &interpolator)
ostream & operator<<(ostream &stream, const ossimLagrangeInterpolator &interpolator)
std::vector< NEWMAT::ColumnVector > theDataArray
std::basic_ostream< char > ostream
Base class for char output streams.
ossimLagrangeInterpolator()