PHP 클래스 MathPHP\NumericalAnalysis\Interpolation\NevillesMethod

In numerical analysis, Nevilles Method is an interpolation technique that uses Lagrange polynomials of lower powers recursively in order to compute Lagrange polynomials of higher powers. Nevilles Method belongs to a collection of techniques that interpolate a function or a set of values to approximate a function at a target point. We can either directly supply a set of inputs and their corresponding outputs for said function, or if we explicitly know the function, we can define it as a callback function and then generate a set of points by evaluating that function at n points between a start and end point. We then use these values to interpolate Lagrange polynomials recursively at our target point. http://www2.math.ou.edu/~npetrov/neville.pdf
상속: extends Interpolation
파일 보기 프로젝트 열기: markrogoyski/math-php

공개 메소드들

메소드 설명
interpolate ( $target, $source, $args ) : number Interpolate

메소드 상세

interpolate() 공개 정적인 메소드

Interpolate
public static interpolate ( $target, $source, $args ) : number
$target The point at which we are interpolation
$source The source of our approximation. Should be either a callback function or a set of arrays. Each array (point) contains precisely two numbers, an x and y. Example array: [[1,2], [2,3], [3,4]]. Example callback: function($x) {return $x**2;}
리턴 number The interpolated value at our target