PHP Трейт MathPHP\NumericalAnalysis\NumericalIntegration\Validation

Показать файл Открыть проект Примеры использования трейта

Открытые методы

Метод Описание
isSpacingConstant ( array $sorted ) Ensures that the length of each subinterval is equal, or equivalently, that the spacing between each point is equal
isSubintervalsMultiple ( array $points, number $m ) Ensures that the number of subintervals is a multiple of m, or equivalently, if there are n points, that n-1 is a multiple of m

Описание методов

isSpacingConstant() публичный статический Метод

Ensures that the length of each subinterval is equal, or equivalently, that the spacing between each point is equal
public static isSpacingConstant ( array $sorted )
$sorted array Points sorted by (increasing) x-component

isSubintervalsMultiple() публичный статический Метод

Ensures that the number of subintervals is a multiple of m, or equivalently, if there are n points, that n-1 is a multiple of m
public static isSubintervalsMultiple ( array $points, number $m )
$points array
$m number The number that n-1 should be a multiple of