InterpolationFunction
FunctionWithCachingFunction[IoId("00000000-3D08-4B4E-83B6-6168413571D9")]
public sealed class InterpolationFunction : FunctionWithCaching
Represents an immutable interpolated equation.
Constructors
InterpolationFunction
#public InterpolationFunction()
InterpolationFunction
#Create a new interpolated equation from a collection of points.
Parameters:
| algorithm (InterpolationAlgorithm) | Algorithm to use. |
| points (IEnumerable<Point2d>) | Sampling points. |
Properties
Derivative
Gets a function which is the derivative of this function. The returned function may be either analytic or approximate.
Overrides: Function.Derivative
Integral
Gets a function which is the indefinite integral of this function. The returned function may be analytic or approximate. Note that numeric approximation of indefinite integrals is a slow and not particularly high quality process.
Overrides: Function.Integral
Notation
Gets the notation for this function. Notation is aimed at humans and does not need to return a parseable string.
Overrides: Function.Notation
Methods
Asymptotes
Returns an array of *all* the non-vertical asymptotes for this function. This property may return both null and empty arrays, implying no asymptotes. Due to the nature of non-vertical asymptotes, there can only be a finite amount of them.
AutoCoDomain
Compute the automatic codomain for a given domain.
ComputeMonotoneCubicDerivatives
#Compute the derivatives for monotonic hermite cubic interpolation.
DomainEstimate
#Overrides: Function.DomainEstimate
EmitDerivative
Override this method to provide an analytic derivative.
EmitIntegral
Override this method to provide an analytic indefinite integral.
Holes
#Returns a collection of domains for which this function is not defined. This method may return null or an empty array, implying no undefined domains. This method may also return domains outside of the specified interval.
Overrides: Function.Holes
Integrate
#Overrides: Function.Integrate
Poles
#Returns an array of all the poles (i.e. vertical asymptotes) within a domain. This method may return both null and empty arrays, implying no poles. Furthermore this method may choose to return poles which fall outside of the given domain.
Overrides: Function.Poles
YYYY
Evaluate a large amount of values. Functions may choose to use multiple threads to perform this calculation. This method should not throw, instead every failed evaluation will be represented by a NaN value.
Parameters:
| x (double[]) | Value to evaluate. |
Returns: Evaluation results. Array will contain double.NaN entries for failed evaluations.