Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <vector>
- #include <iostream>
- class SplineImpl {
- public:
- SplineImpl(const std::vector<double>& x, const std::vector<double>& y, double a, double b) {
- x_[0] = x[0];
- x_[1] = x[1];
- y_[0] = y[0];
- y_[1] = y[1];
- a_ = a;
- b_ = b;
- if (mySplineSnd(x_, y_, a, b, y2_) != 0) {
- std::cerr << "shit happens" << std::endl;
- }
- }
- double Interpolate(double x) {
- }
- private:
- double x_[2];
- double y_[2];
- double* y2_ = new double[2];
- double a_, b_;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement