©
From Gaussian to a parabola
Uses 'curve_fit' as paradigm regression.
2024.Jul.03 19:24:17
File to upload (Optional) E. g., dataGauss.xlsx (table of data)
Gaussian data Data (matrix or 'csv').
Parameters Proposed parameter values.
Initial guesses Initial guesses (ignored if "Verify").
Mode   Mode of computation.
Show values Show graph coordinates.

Performs a regression from given data to adjust a parabola to them. (This is a paradigm exercise in regression to test Python library.)

The default data are Gaussian (from μ = 5, σ = 0.8), but any other data can be used.

Files involved: P-gaussToParab.php (this one), GaussToParab.php, gaussToParab.py.

Advantage is taken from: PHP, for the web page; and Python for the numerical segment; and 'gnuplot', for plotting.

Draws a plot of the original and the adjusted data.


Computation structure — A PHP file (this page: 'P-GaussToParab.php') calls (via 'action=...') an intermediate PHP file ('GaussToParab.php'), which (through $_POST) sends the problem data as command line arguments to a Python script. This last does the computing, and makes 'system' call(s) to 'gnuplot', for the final (temporary) webpage.

Keywords: PHP, command line arguments, Python script, gnuplot.

References: Plate: GaussianToParabola

• (Wikipedia) PHP (from Personal Home Page)

• 1875-10-15: Cholesky, AndrĂ©-Louis (†1918-08-31, 42 yrs.).

 
 
Valid HTML 5! IST http://web.ist.utl.pt/~mcasquilho/compute/explore/GaussToParab/P-GaussToParab.php
Created: 2023-10-16 — Last modified: 2024-06-18