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

Erroneous documentation for auto_basis #9

Open
tatephughes opened this issue Sep 19, 2024 · 1 comment
Open

Erroneous documentation for auto_basis #9

tatephughes opened this issue Sep 19, 2024 · 1 comment

Comments

@tatephughes
Copy link

In the documentation for auto_basis, it says

If the manifold is a plane, and regular > 0, then basis functions are placed regularly within the bounding box of data, with the smallest number of basis functions in each row or column equal to the value of regular in the coarsest resolution (note, this is just the smallest number of basis functions). Subsequent resolutions have twice the number of basis functions in each row or column.

However, the numbers here seem to be incorrect. The part of the code (lines 460 and 461) for the number of basis functions in placed in resolution i is round(nx*(3^(i)), where i ranges from 1 to nres, (assuming x is the wider dimension, so nx<-regular on line 416, the same applies if y is the wider dimension of course).

This means that the number of basis function at the coarsest resolution is actually 3 times the value of regular, and subsequent resolutions have thrice the number of basis functions in each row/column.

Really sorry if I have misunderstood the documentation of course!

@andrewzm
Copy link
Owner

andrewzm commented Sep 19, 2024 via email

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

3 participants
@andrewzm @tatephughes and others