magicfile icon Magic file website - magicfile.ir

Source and code of linear interpolation program with Visual Basic .NET

سورس-و-کد-برنامه-درون-یابی-خطی-با-ویژوال-بیسیک-دات-نت
Short description and download link
Today, in this post, for you, dear users, we have prepared a source and code for a linear interpolation program with Visual Basic.NET ready for download.

Download

List of similar files

Short link: https://en.magicfile.ir/?p=2395
Full description of the file

Download the source and code of the linear interpolation program with Visual Basic.NET (BezierSplines Cubic Splines vb.net)

Today, in this post, for you, dear users, we have prepared a source and code for a linear interpolation program with Visual Basic.NET ready for download.

This software is designed to support the algorithm calculation of x-y value curve positions, so that you can easily get any desired point in that drawn curve by drawing a BezierSpline with GDI+ (calling Graphics.DrawCurve(Points)).

سورس و کد برنامهLinear interpolation با ویژوال بیسیک دات نت

A Bezier-Splines curve (brown), made by 7 support points, which divide the BezierSplines into 6 Bezier-Segments. 19 structure points that model the curve (orange). A "pointer curve" (red). It can be moved along the BezierSplines and its location is displayed, calculated by interpolating the BezierSplines.

How BezierSplines are made

Each segment between two support points is created as a BezierCurve with 4 construction points:
The two support points themselves and two additional points, which make sure that the Bezier degree that reaches the support point is the same as the Bezier degree. , which leaves the support point.

Now interpolate it

To get the Y value of an X position, I interpolate the BezierSplines in two steps:
First, I search for the Bezier-Segment that contains the X position. This is quickly done by a binary search:

Decrease

Interpolating Bezier-Spline-Segments as a function Y = f(X) - is mathematically incorrect.
Although I keep the support points in "left to right" order, a segment can form where it represents more than one Y value at certain X positions.
My "append" ignores such cases and simply returns the first Y-Value.
The failure allows itself to be seen by some parts of the curve, which cannot be reached by interpolation.

It is mathematically correct to interpolate CubicSplines.
They are mathematically undefined only if two support points lie on the same X position (as a vertical line).

Polygon, cubic spline

While the interpolation of polygons is trivial, the same is - ahem - trivial in CubicSplines. There is no GDI+ - function that will draw it for you, so you have to deal with linear algebra to solve systems of linear equations - brrr! - I have done this without real understanding.

To get the source and code of the linear interpolation program with Visual Basic.NET, click on the link below

Click here to download

Files that you may need

دانلود-نمونه-سورس-و-کد تبديل-متن-به-باينري-و-برعکس-در-ویژوال-بیسیک-دات-نت

Download sample source and text conversion code to binary and vice versa in Visual Basic .NET

Download
more details

User comments

کد امنیتی

Comment sent by Mahdakht - 2022/12/07 1:59:46 am
I thank the teacher for posting this file I downloaded it, it was good and complete
 
The answer of the magic file support
Hello Thank you for sending your opinion
 
Comment sent by Shirinbanu - 1/13/2023 1:00:09 am
Greetings to educated people, who always make a continuous effort to provide the latest. Congratulations to the professor for publishing this article. Always be successful and victorious.
 
The answer of the magic file support
Hello Thank you
 
Comment sent by Shorangiz - 2023/1/31 2:54:40 am
It was a very interesting post, thank you for the introduction
 
The answer of the magic file support
Hello thanks for your kindness
 

List of website special files

دانلود-نرم-افزار-تبدیل-فایل-متنی-به-vcf-(مخاطب-موبایل)
Download software to convert text file to vcf (mobile contact)

دانلود-نرم-افزار-تغییر-زبان-سورس-و-کد-ویژوال-استودیو-(عناصر-دیزاین-طراحی-فرم-ها)
Download software to change the source language and code of Visual Studio (design elements of form design)

دانلود-نرم-افزار-ترجمه-خودکار-فایل-های-po-,-pot-بصورت-کامل-برای-تمامی-زبان-ها-از-جمله-فارسی
Download automatic translation software for po, pot files in full for all languages, including Persian

بهترین-سرویس-پوش-نوتیفیکیشن-اسکريپت-مديريت-اعلان-و-ساخت-پوش-نوتیفیکیشن-سایت
The best notification service push script notification management and build site notification push