category
interpolator
Common point validation and domain handling for one-dimensional interpolators.
Availability:
logtalk_load(numerical_analysis(loader))Author: Paulo Moura
Version: 1:0:0
Date: 2026-09-04
Compilation flags:
staticRemarks:
(none)
Inherited public predicates:
Public predicates
(no local declarations; see entity ancestors if any)
Protected predicates
prepare_points/3
Validates and sorts interpolation points and returns separate abscissa and ordinate lists.
Compilation flags:
staticTemplate:
prepare_points(Points,Abscissas,Ordinates)Mode and number of proofs:
prepare_points(+list(pair),-list(number),-list(number)) - one_or_errorExceptions:
Points is a variable:instantiation_errorPoints is not a valid list of at least two numeric points:domain_error(interpolation_points,Points)Points contains a duplicate abscissa:domain_error(duplicate_abscissa,Abscissa)check_argument/3
Checks that an interpolation argument lies in the closed fitted domain.
Compilation flags:
staticTemplate:
check_argument(Argument,Lower,Upper)Mode and number of proofs:
check_argument(+number,+number,+number) - one_or_errorExceptions:
Argument is a variable:instantiation_errorArgument is not a number:type_error(number,Argument)Argument lies outside the fitted domain:domain_error(interpolation_domain,Argument)select_interval/3
Selects the fitted interval containing an already validated argument.
Compilation flags:
staticTemplate:
select_interval(Argument,Intervals,Interval)Mode and number of proofs:
select_interval(+number,+list(compound),-compound) - onePrivate predicates
(no local declarations; see entity ancestors if any)
Operators
(none)