C# 클래스 YAMP.Numerics.Interpolation

Abstract base class for various interpolation algorithms.
파일 보기 프로젝트 열기: FlorianRappl/YAMP

공개 메소드들

메소드 설명
ComputeValue ( double x ) : double

Computes an interpolated y-value for the given x-value.

ComputeValues ( MatrixValue x ) : MatrixValue

Uses the abstract Compute() methods to compute ALL values.

Interpolation ( MatrixValue samples ) : YAMP.Exceptions

Creates a new instance.

보호된 메소드들

메소드 설명
SolveTridiag ( double sub, double diag, double sup, double &b, int n ) : void

Solves the system of linear equations for a tri-diagonal A in A * x = b.

메소드 상세

ComputeValue() 공개 추상적인 메소드

Computes an interpolated y-value for the given x-value.
public abstract ComputeValue ( double x ) : double
x double The x-value to search for a y-value.
리턴 double

ComputeValues() 공개 메소드

Uses the abstract Compute() methods to compute ALL values.
public ComputeValues ( MatrixValue x ) : MatrixValue
x MatrixValue The matrix with given x values.
리턴 MatrixValue

Interpolation() 공개 메소드

Creates a new instance.
public Interpolation ( MatrixValue samples ) : YAMP.Exceptions
samples MatrixValue The given sample values - the matrix has to be Nx2 with the /// first column for the x values and the second column for the y values.
리턴 YAMP.Exceptions

SolveTridiag() 보호된 메소드

Solves the system of linear equations for a tri-diagonal A in A * x = b.
protected SolveTridiag ( double sub, double diag, double sup, double &b, int n ) : void
sub double The lower diagonal of A.
diag double The diagonal itself of A.
sup double The upper diagonal of A.
b double The vector b in A * x = b.
n int The length of the diagonal.
리턴 void