Beispiel #1
0
 public CubicInterpolation(List <double> xBegin, int size, List <double> yBegin,
                           CubicInterpolation.DerivativeApprox da,
                           bool monotonic,
                           CubicInterpolation.BoundaryCondition leftCond,
                           double leftConditionValue,
                           CubicInterpolation.BoundaryCondition rightCond,
                           double rightConditionValue)
 {
     impl_ = new CubicInterpolationImpl(xBegin, size, yBegin, da, monotonic, leftCond, leftConditionValue, rightCond,
                                        rightConditionValue);
     impl_.update();
 }
Beispiel #2
0
        // private CoefficientHolder coeffs_;

        public CubicInterpolation(List <double> xBegin, int size, List <double> yBegin,
                                  CubicInterpolation.DerivativeApprox da,
                                  bool monotonic,
                                  CubicInterpolation.BoundaryCondition leftCond,
                                  double leftConditionValue,
                                  CubicInterpolation.BoundaryCondition rightCond,
                                  double rightConditionValue)
        {
            impl_ = new CubicInterpolationImpl(xBegin, size, yBegin,
                                               da, monotonic,
                                               leftCond, leftConditionValue,
                                               rightCond, rightConditionValue);
            impl_.update();
            // coeffs_ = boost::dynamic_pointer_cast<detail::CoefficientHolder>(impl_);
        }
 // private CoefficientHolder coeffs_;
 public CubicInterpolation(List<double> xBegin, int size, List<double> yBegin,
     CubicInterpolation.DerivativeApprox da,
     bool monotonic,
     CubicInterpolation.BoundaryCondition leftCond,
     double leftConditionValue,
     CubicInterpolation.BoundaryCondition rightCond,
     double rightConditionValue)
 {
     impl_ = new CubicInterpolationImpl(xBegin, size, yBegin,
                                        da, monotonic,
                                        leftCond, leftConditionValue,
                                        rightCond, rightConditionValue);
     impl_.update();
     // coeffs_ = boost::dynamic_pointer_cast<detail::CoefficientHolder>(impl_);
 }