Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Trend surface analysis report could include actual equation #417

Open
hemicidaris opened this issue Jun 29, 2024 · 0 comments

Comments

@hemicidaris
Copy link

Currently the trend surface analysis report looks like this:

HTML snippet

Polynomial Order: 2

R-sqr: 0.83002

Pre-calculation Transformation Coefficients
ΔXΔYΔZ
1677454.58424071435658853.24048165316.44099998474121

z = b1 + b2y + b3y2 + b4x + b5xy + b6x2

Regression Coefficients
Coefficient Num.Value
b1233.745098195725
b2-0.025565619592
b30.000000431583
b40.009257321673
b5-0.000000149510
b6-0.000000025719

It would be really useful if this included the final equation including both the transformation and regression coefficients, so that (for instance) it can be directly copied into a field calculator and used to calculate residuals for each point.
Besides this there are of course other uses for easy access to the actual equation.

This could look like the following (using Python code, but of course another language could be used, eg. QGIS field calculator syntax):

HTML mockup

Polynomial Order: 2

R-sqr: 0.83002

Pre-calculation Transformation Coefficients
ΔXΔYΔZ
1677454.58424071435658853.24048165316.44099998474121

z = b1 + b2y + b3y2 + b4x + b5xy + b6x2

Regression Coefficients
Coefficient Num.Value
b1233.745098195725
b2-0.025565619592
b30.000000431583
b40.009257321673
b5-0.000000149510
b6-0.000000025719

z = 16.44099998474121 + (
	233.745098195725
	+ (-0.025565619592 * (y - 5658853.240481653))
	+ (0.000000431583 * (y - 5658853.240481653)**2)
	+ (0.009257321673 * (x - 1677454.5842407143))
	+ (-0.000000149510 * (x - 1677454.5842407143) * (y - 5658853.240481653))
	+ (-0.000000025719 * (x - 1677454.5842407143)**2)
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant