Exemplo n.º 1
0
        /// <summary>
        /// Main ctor.
        /// </summary>
        /// <param name="discreteCurve"></param>
        /// <param name="interpolation"></param>
        /// <param name="allowExtrapolation"></param>
        public InterpolatedCurve(IDiscreteSpace discreteCurve, IInterpolation interpolation, bool allowExtrapolation)
            : base(discreteCurve, interpolation, allowExtrapolation)
        {
            var xArray = GetDiscreteSpace().GetCoordinateArray(1);
            var yArray = GetDiscreteSpace().GetFunctionValueArray();

            Interpolation.Initialize(xArray, yArray);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Main ctor.
 /// </summary>
 /// <param name="discreteSurface">The discrete surface ie 2 dimensional.</param>
 /// <param name="interpolation">The basic interpolation to be applied to the x axis.</param>
 /// <param name="yInterpolation">The interpolation type for the y axis</param>
 /// <param name="allowExtrapolation">Not implemented in EO.</param>
 public InterpolatedSurface(IDiscreteSpace discreteSurface, IInterpolation interpolation,
                            IInterpolation yInterpolation, bool allowExtrapolation)
     : base(discreteSurface, interpolation, allowExtrapolation)
 {
     if (discreteSurface.GetNumDimensions() != 2)
     {
         throw new System.Exception("Wrong number of dimensions.");
     }
     YInterpolation = yInterpolation;
     XInterpolation = interpolation;
 }
 /// <summary>
 /// VolSurfaceInterpolator
 /// </summary>
 /// <param name="discreteCurve"></param>
 /// <param name="interpolation"></param>
 /// <param name="allowExtrapolation"></param>
 public VolSurfaceInterpolator(IDiscreteSpace discreteCurve, InterpolationMethod interpolation, bool allowExtrapolation)
     : base(discreteCurve, InterpolationFactory.Create(interpolation.Value), allowExtrapolation)
 {
 }
Exemplo n.º 4
0
 /// <summary>
 /// The main ctor.
 /// </summary>
 /// <param name="discreteSpace">The discrete space upon which to apply the interpolating function.</param>
 /// <param name="interpolation">Interpolation type for the x axis.</param>
 /// <param name="allowExtrapolation">Boolean flag, currently not implemented.</param>
 protected InterpolatedSpace(IDiscreteSpace discreteSpace, IInterpolation interpolation, bool allowExtrapolation)
 {
     _discreteSpace      = discreteSpace;
     Interpolation       = interpolation;
     _allowExtrapolation = allowExtrapolation;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Main ctor.
 /// </summary>
 /// <param name="discreteSurface">The discrete surface ie 2 dimensional.</param>
 /// <param name="xInterpolation">The basic interpolation to be applied to the x axis.</param>
 /// <param name="yInterpolation">The interpolation type for the y axis</param>
 /// <param name="allowExtrapolation">Not implemented in EO.</param>
 protected ExtendedInterpolatedSurface(IDiscreteSpace discreteSurface, IInterpolation xInterpolation,
                                       IInterpolation yInterpolation, bool allowExtrapolation)
     : base(discreteSurface, xInterpolation, yInterpolation, allowExtrapolation)
 {
 }
Exemplo n.º 6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="discreteCurve"></param>
 /// <param name="interpolation"></param>
 /// <param name="allowExtrapolation"></param>
 protected SimpleBaseCurve(IDiscreteSpace discreteCurve, IInterpolation interpolation, bool allowExtrapolation)
     : base(discreteCurve, interpolation, allowExtrapolation)
 {
 }
Exemplo n.º 7
0
 /// <summary>
 /// Main ctor.
 /// </summary>
 /// <param name="discreteSurface">The discrete surface ie 2 dimensional.</param>
 /// <param name="interpolation">The basic interpolation to be applied to the x axis.</param>
 /// <param name="allowExtrapolation">Not implemented in EO.</param>
 public InterpolatedSurface(IDiscreteSpace discreteSurface, IInterpolation interpolation, bool allowExtrapolation)
     : this(discreteSurface, interpolation, interpolation, allowExtrapolation)
 {
 }