Esempio n. 1
0
            /// <summary>Initializes a new instance of the <see cref="Interpolator"/> class.
            /// </summary>
            /// <param name="monotonicPreservingCubicSpline">The <see cref="MonotonicPreservingCubicSpline"/> object which serves as factory for the current object.</param>
            internal Interpolator(MonotonicPreservingCubicSpline monotonicPreservingCubicSpline)
            {
                m_InterpolatorFactory = monotonicPreservingCubicSpline;

                m_SplineEvaluator   = new CubicSplineEvaluator();
                m_BoundaryCondition = monotonicPreservingCubicSpline.BoundaryCondition.Create();
            }
 /// <summary>Initializes a new instance of the <see cref="Interpolator"/> class.
 /// </summary>
 /// <param name="interpolationFactory">The <see cref="CurveInterpolationBesselCubicSpline"/> object that serves as factory for the current object.</param>
 internal Interpolator(CurveInterpolationBesselCubicSpline interpolationFactory)
 {
     m_SplineEvaluator = new CubicSplineEvaluator();
     Factory           = interpolationFactory;
 }
Esempio n. 3
0
 /// <summary>Initializes a new instance of the <see cref="Interpolator"/> class.
 /// </summary>
 /// <param name="boundaryCondition">The boundary condition.</param>
 /// <param name="interpolationFactory">The <see cref="CurveInterpolationCommonCubicSpline"/> object that serves as factory for the current object.</param>
 internal Interpolator(ICubicSplineBoundaryCondition boundaryCondition, CurveInterpolationCommonCubicSpline interpolationFactory)
 {
     m_BoundaryCondition = boundaryCondition;
     m_SplineEvaluator   = new CubicSplineEvaluator();
     Factory             = interpolationFactory;
 }