Piecewise cubic spline interpolation and approximated calculation of first and second derivative at the interpolation point.
Accepts a function to be approximated, and a list of x coordinates that are endpoints of interpolation intervals. Generates cubic splines matching the values and slopes at the ends of the intervals. Can generate fairly fast C code, or can be used...
For a given matrix of exact values and another matrix of approximated values, the following error types are computed: - error matrix - absolute error matrix - relative error matrix - absolute relative error matrix -...
It performs piecewise parabolic interpolation and approximated calculation of first and second derivative at the interpolation point.
This is a fast and non-iterative ellipse fit. Usage:
A = EllipseDirectFit(XY)
Input: XY(n,2) is the array of coordinates of n points x(i)=XY(i,1), y(i)=XY(i,2)
Output: A = [a b c d e f]' is the vector...
Dynamical analyses in engineering often require inertial properties of complex shapes such as polyhedra. The volume, the first moment of volume and the second moment of volume of a general solid can be computed by V =...
A circle of radius 0.5 is inscribed inside a square with side length 1. Script picks N points at random inside the square. It then checks to see if the point is inside the circle and then generates a figure in which the points ''in'' and...
Simulate and visualize three models for aggregated telecommunications traffic with long-range dependence: superposition of renewal processes, infinite source Poisson (M/G/Infinity) model and integrated sum of on-off processes. The simulations...
Impulse response invariant discretization of BICO (Bode's Ideal Cut-Off) transfer function BICO TF= 1./((s./w0+sqrt((s./w0).^2+1)).^r); r is a positive real number IN: Ts: The sampling period w0: Cutoff frequency ...
Step response invariant discretization of BICO (Bode's Ideal Cut-Off) transfer function BICO TF= 1./((s./w0+sqrt((s./w0).^2+1)).^r); r is a positive real number IN: Ts: The sampling period w0: Cutoff frequency r:...
I had to compute the length of arcs of Earth's meridian. I noticed that there was no analytical solution for this so I wrote this very simple function.
It computes the arc length of an ellipse centered on (0,0) with radius a (along OX)...
Finds a knee point of a curve Finds a location of "knee" of a curve. Provides a consistent and mathematically justifiable answer when there is no obvious location along the curve where the curve "turns". The function uses...
OSM XML to CSV conversion. POI only, polygons (and polylines, but not recommended) are approximated by centroid. Result is a 3-column table with lon, lat and value (for a particular key to be chosen beforehand).
This is a fast non-iterative ellipse fit, and among fast non-iterative ellipse fits this is the most accurate and robust.
It takes the xy-coordinates of data points, and returns the coefficients of the equation of the ellipse:
fxoptions( S0, X, rd, rf, T, vol, style)
Valuation of European and American call and put options on foreign exchange using Garman-Kohlhagen model. European option prices are given by an exact formula (Garman-Kohlhagen).
[B, IDX, OUTLIERS] = DELETEOUTLIERS(A, ALPHA, REP) For input vector A, returns a vector B with outliers (at the significance level alpha) removed. Also, optional output argument idx returns the indices in A of outlier values. Optional...
The Friedman test is a non-parametric statistical test developed by the U.S. economist Milton Friedman. Similar to the parametric repeated measures ANOVA, it is used to detect differences in treatments across multiple test attempts. The procedure...
In statistics, the Kruskald-deOCtWallis one-way analysis of variance by ranks (named after William Kruskal and W. Allen Wallis) is a non-parametric method for testing equality of population medians among groups. It is identical to a one-way...
This module provides dynamic [Log in/Create account][My account][Log out] menu links. Before the user is logged in, only the [Log in/Create account] link is shown(this can be configured as two links: [Login] and [Register]). After the user is... |