Ejemplo n.º 1
0
        /// <summary>Initializes a new instance of the <see cref="MklDataFitting" /> class.
        /// </summary>
        /// <param name="splineOrder">The spline order.</param>
        /// <param name="splineType">The type of the spline.</param>
        /// <param name="boundaryConditionType">The type of the boundary condition.</param>
        /// <param name="boundaryCondition">The boundary condition.</param>
        /// <param name="splineCoefficientHint">The spline coefficient hint.</param>
        /// <param name="internalConditionType">The internal boundary condition type.</param>
        /// <param name="internalConditions">The internal boundary condition.</param>
        public MklDataFitting(MklCurveInterpolationSpline.SplineOrder splineOrder, MklCurveInterpolationSpline.SplineType splineType, MklCurveInterpolationSpline.SplineBoundaryCondition boundaryConditionType, double[] boundaryCondition = null, MklCurveInterpolationSpline.SplineCoefficientStorageFormat splineCoefficientHint = MklCurveInterpolationSpline.SplineCoefficientStorageFormat.DF_NO_HINT, MklCurveInterpolationSpline.SplineInternalConditionType internalConditionType = MklCurveInterpolationSpline.SplineInternalConditionType.DF_NO_IC, double[] internalConditions = null)
            : base(MklCurveResource.AnnotationMklGeneral)
        {
            m_SplineOrder            = splineOrder;
            m_SplineType             = splineType;
            m_BoundaryConditionType  = boundaryConditionType;
            m_BoundaryCondition      = boundaryCondition;
            m_SplineCoefficientHint  = splineCoefficientHint;
            m_InternalConditionTypes = internalConditionType;
            m_InternalConditions     = internalConditions;

            m_Name = m_LongName = new IdentifierString(String.Format("MKL data fitting ({0};{1};{2};{3})", splineOrder.ToFormatString(EnumStringRepresentationUsage.StringAttribute), splineType.ToFormatString(EnumStringRepresentationUsage.StringAttribute), boundaryConditionType.ToFormatString(EnumStringRepresentationUsage.StringAttribute), internalConditionType.ToFormatString(EnumStringRepresentationUsage.StringAttribute)));
        }
Ejemplo n.º 2
0
 protected extern static int _dfdEditPPSpline1D(IntPtr task, MklCurveInterpolationSpline.SplineOrder splineOrder, MklCurveInterpolationSpline.SplineType splineType, MklCurveInterpolationSpline.SplineBoundaryCondition boundaryConditionType, double[] bc, MklCurveInterpolationSpline.SplineInternalConditionType ic_type, double[] ic, double[] splineCoefficients, MklCurveInterpolationSpline.SplineCoefficientStorageFormat scoeffhint);